FluidTYPO3\Flux\Tests\Unit\View\TemplatePathsTest::testGetterAndSetter PHP Метод

testGetterAndSetter() публичный Метод

public testGetterAndSetter ( string $property, mixed $value )
$property string
$value mixed
    public function testGetterAndSetter($property, $value)
    {
        $getter = 'get' . ucfirst($property);
        $setter = 'set' . ucfirst($property);
        $instance = new TemplatePaths();
        $instance->{$setter}($value);
        $this->assertEquals($value, $instance->{$getter}());
    }