IdentityAccessorTest\AccessorObjectIdentifierTest::shouldReturnTheRightCallback PHP Method

shouldReturnTheRightCallback() public method

    function shouldReturnTheRightCallback()
    {
        $obj = $this->getMock('IdentityAccessorTest\\AccessorIdentifiedObject');
        $obj->method('getId')->willReturn(1234);
        $id = $this->accessor->getIdentity($obj);
        $this->assertEquals(1234, $id);
    }