public function assertPersistedPropertyValue($entity, $propertyName, $expectedPropertyValue, $forceDirectAccess = true) { $this->entityManager->refresh($entity); $persistedPropertyValue = ObjectAccess::getProperty($entity, $propertyName, $forceDirectAccess); $this->test->assertSame($expectedPropertyValue, $persistedPropertyValue, 'The property ' . $propertyName . ' did not have the expected persistent value'); return $this; }
public function equals($string) { $this->test->assertSame($string, $this->response->getContent(), 'The Response did not equal the string <' . $string . '>'); return $this; }