ZF-12298: Zend_Test_PHPUnit_ControllerTestCase::assertNotRedirect() undefined index: location in 1.12.0rc1

Issue Type: Bug Created: 2012-06-21T05:02:32.000+0000 Last Updated: 2012-06-26T14:38:49.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: bullfrogblues (gerardroche) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Test_PHPUnit

  • FixForZF1.12

Related issues: Attachments:


Zend_Test_PHPUnit_ControllerTestCase::assertNotRedirect causes an "undefined index: location" error notice in 1.12.0rc1.

It produces an E_NOTICE error which fails test suite.

To reproduce:

  1. Create zf app with zf tool

  2. Add: $this->assertNotRedirect(); to the end of the method testIndexAction() in file: tests/application/controllers/IndexController.php

  3. run tests


Posted by Adam Lundrigan (adamlundrigan) on 2012-06-26T14:38:49.000+0000

Fixed in trunk r25001.
Merged to release-1.12 r25002.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.