/** * @test */ public function getSettablePropertyNamesReturnsPropertyNamesOfStdClass() { $stdClassObject = new \stdClass(); $stdClassObject->property = 'string1'; $stdClassObject->property2 = NULL; $settablePropertyNames = \TYPO3\FLOW3\Reflection\ObjectAccess::getSettablePropertyNames($stdClassObject); $expectedPropertyNames = array('property', 'property2'); $this->assertEquals($expectedPropertyNames, $settablePropertyNames, 'getSettablePropertyNames returns not all settable properties.'); }