Inheritance: implements Nelmio\Alice\Definition\ValueInterface
コード例 #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());
 }
コード例 #2
0
 public static function createForFixture(FixtureInterface $fixture, FixturePropertyValue $value, int $code = 0, \Throwable $previous = null) : NoSuchPropertyException
 {
     return new NoSuchPropertyException(sprintf('Could not find the property "%s" of the object "%s" (class: %s).', $value->getProperty(), $fixture->getId(), $fixture->getClassName()), $code, $previous);
 }