Example #1
0
 public function testConfigureNewProperties()
 {
     $options = ['testNewIntValue' => 10, 'testNewStringValue' => 'Hello world', 'testNewArrayValue' => ['hello', 'world', 5], 'testNewObjectValue' => new \stdClass(), 'testNewFloatValue' => 1.5];
     $item = new Item();
     $item->configure($options);
     foreach ($options as $option => $value) {
         $this->assertEquals($value, $item->{$option});
     }
 }