public function testShouldThrowErrorIfNoErrorAddedForAnError()
 {
     $this->setExpectedException(ResponseBuilderException::CLASS_NAME, 'No error found');
     $builder = $this->getBuilder();
     $builder->setHttpErrorCode(HttpErrorCode::code400());
     $builder->build();
 }
Пример #2
0
 public function testShouldHaveACODE_400()
 {
     $this->assertSame(HttpErrorCode::CODE_400, HttpErrorCode::code400()->getValue());
 }