Nelmio\Alice\Definition\Value\FixtureMethodCallValueTest::testCanBeCastedIntoAString PHP Метод

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

    public function testCanBeCastedIntoAString()
    {
        $value = new FixtureMethodCallValue(new FixtureReferenceValue('dummy'), new FunctionCallValue('foo'));
        $this->assertEquals('@dummy->foo()', (string) $value);
        $value = new FixtureMethodCallValue(new FixtureReferenceValue('dummy'), new FunctionCallValue('foo', ['bar']));
        $this->assertEquals("@dummy->foo(array (\n  0 => 'bar',\n))", (string) $value);
    }