Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ControllerTestCase.php #26

Closed
wants to merge 1 commit into from
Closed

Conversation

denzel187
Copy link

changed the zend controller to use new namespaced phpunit classes.

I guess anyone who uses php7 and above will use a newer phpunit version

Zend Framework 1 reaches its End of Life (EOL) and is no longer maintained.
No Pull Requests will be accepted.

https://framework.zend.com/blog/2016-06-28-zf1-eol.html

changed the zend controller to use new namespaced phpunit classes.

I guess anyone who uses php7 and above will use a newer phpunit version
Copy link

@Naktibalda Naktibalda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be useful to document supported versions of PHPUnit.
This class is incompatible with PHPUnit 8, because in 8 setUp method must have void return type declared.

@Shardj
Copy link
Owner

Shardj commented Nov 15, 2019

<?php

define('TEST_EXECUTION', true);

require_once dirname(__FILE__) . '/../..' . '/app-loader.php';
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}

Just do something like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants