19 declare(strict_types=1);
28 return new Listing\Factory(
38 $this->assertInstanceOf(
I\
Listing\Listing::class, $pl);
39 $this->assertInstanceOf(
I\
Listing\Property::class, $pl);
45 [
'label1',
'value1',
true],
46 [
'label2',
'value2',
false]
49 ->withProperty(...$props[0])
50 ->withProperty(...$props[1]);
52 $this->assertEquals($props, $pl->getItems());
58 [
'label1',
'value1',
true],
59 [
'label2',
'value2',
false]
62 ->withProperty(
'overwritten',
'by props');
64 $pl = $pl->withItems($props);
65 $this->assertEquals($props, $pl->getItems());
71 [
'label1',
'value1',
true],
72 [
'label2',
'value2',
false]
77 $expected = $this->brutallyTrimHTML(
' 78 <div class="l-bar__space-keeper c-listing-property"> 79 <div class="l-bar__group c-listing-property__property"> 80 <span class="l-bar__element c-listing-property__propertylabel">label1</span> 81 <span class="l-bar__element c-listing-property__propertyvalue">value1</span> 83 <div class="l-bar__group c-listing-property__property"> 84 <span class="l-bar__element c-listing-property__propertyvalue">value2</span> 91 $this->brutallyTrimHTML($this->getDefaultRenderer()->render($pl))
testPropertyListingWithProperty()
testPropertyListingWithItems()
testPropertyListingConstruction()
testPropertyListingRendering()