/** * @test */ public function supportsChainingInAllSettersWithFakeNullArgument() { $asset = Asset::getInstance(); $settableProperties = ObjectAccess::getSettablePropertyNames($asset); foreach ($settableProperties as $propertyName) { $setter = 'set' . ucfirst($propertyName); $asset = $asset->{$setter}(NULL); $this->assertInstanceOf('FluidTYPO3\\Vhs\\Asset', $asset, 'The ' . $setter . ' method does not support chaining'); } }