ResponseTest.php 474 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @license Apache 2.0
  4. */
  5. namespace SwaggerTests;
  6. class ResponseTest extends SwaggerTestCase
  7. {
  8. public function testMisspelledDefault()
  9. {
  10. $annotations = $this->parseComment('@SWG\Get(@SWG\Response(response="Default", description="description"))');
  11. $this->assertSwaggerLogEntryStartsWith('Invalid value "Default" for @SWG\Response()->response, expecting "default" or a HTTP Status Code in ');
  12. $annotations[0]->validate();
  13. }
  14. }