AssertIntegrationTestCase.php 507 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Cake\Test\Fixture;
  3. use Cake\Network\Response;
  4. use Cake\TestSuite\IntegrationTestCase;
  5. /**
  6. * This class helps in indirectly testing the functionalities of IntegrationTestCase
  7. *
  8. */
  9. class AssertIntegrationTestCase extends IntegrationTestCase {
  10. /**
  11. * testBadAssertNoRedirect
  12. *
  13. * @return void
  14. */
  15. public function testBadAssertNoRedirect() {
  16. $this->_response = new Response();
  17. $this->_response->header('Location', 'http://localhost/tasks/index');
  18. $this->assertNoRedirect();
  19. }
  20. }