Nelmio\Alice\Definition\Value\FixturePropertyValue::getReference PHP Method

getReference() public method

public getReference ( ) : Nelmio\Alice\Definition\ValueInterface
return Nelmio\Alice\Definition\ValueInterface
    public function getReference() : ValueInterface
    {
        return $this->reference;
    }

Usage Example

コード例 #1
0
 public function testReadAccessorsReturnPropertiesValues()
 {
     $reference = new FakeValue();
     $property = 'username';
     $value = new FixturePropertyValue($reference, $property);
     $this->assertEquals($reference, $value->getReference());
     $this->assertEquals($property, $value->getProperty());
     $this->assertEquals([$reference, $property], $value->getValue());
 }