Exemple #1
0
 /**
  * @test
  */
 public function it_can_be_created_with_a_factory_for_errors()
 {
     $rsp = Rsp::error('INVALID_DATE', 'Invalid date detected');
     $expectedRsp = new Rsp('0.1', Rsp::LEVEL_ERROR, 'INVALID_DATE', null, 'Invalid date detected');
     $this->assertEquals($expectedRsp, $rsp);
 }