Nelmio\Alice\Definition\MethodCall\SimpleMethodCallTest::testReadAccessorsReturnPropertiesValues PHP Method

testReadAccessorsReturnPropertiesValues() public method

    public function testReadAccessorsReturnPropertiesValues()
    {
        $method = 'setUsername';
        $arguments = [new \stdClass()];
        $definition = new SimpleMethodCall($method, $arguments);
        $this->assertNull($definition->getCaller());
        $this->assertEquals($method, $definition->getMethod());
        $this->assertEquals($arguments, $definition->getArguments());
        $this->assertEquals($method, $definition->__toString());
        $definition = new SimpleMethodCall($method, null);
        $this->assertNull($definition->getCaller());
        $this->assertEquals($method, $definition->getMethod());
        $this->assertNull($definition->getArguments());
        $this->assertEquals($method, $definition->__toString());
    }