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()); }
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); }