Esempio n. 1
0
 /**
  * @test
  */
 public function setError()
 {
     $result = new Result();
     $error = array('foo' => 'bar');
     $result->setError($error);
     $this->assertTrue($result->isFailure());
     $this->assertSame($error, $result->getError());
 }