Ejemplo n.º 1
0
 public function hasCode($code)
 {
     $this->_validateExceptionThrown();
     AssertAdapter::assertEquals($code, $this->exception->getCode());
     return $this;
 }
Ejemplo n.º 2
0
 public function isEqualTo($array)
 {
     AssertAdapter::assertEquals($array, $this->actual);
 }
Ejemplo n.º 3
0
 private function _assertSamePersistentAttributes(Model $expected)
 {
     $expectedAttributes = Arrays::filterByAllowedKeys($expected->attributes(), $expected->getFields());
     $actualAttributes = Arrays::filterByAllowedKeys($this->_actual->attributes(), $this->_actual->getFields());
     AssertAdapter::assertEquals($expectedAttributes, $actualAttributes, 'Models have different attributes ');
 }