Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public function equals($string)
 {
     $this->test->assertSame($string, $this->response->getContent(), 'The Response did not equal the string <' . $string . '>');
     return $this;
 }