Dropped php-test-helpers for uopz
Seems that uopz has superseded php-test-helpers. Updated the exit overloading and adjusted some tests based on the new behavior of not echoing out the argument passed to exit().
This commit is contained in:
parent
018ae0edc1
commit
260b532a66
3 changed files with 7 additions and 21 deletions
|
@ -1,14 +1,6 @@
|
|||
<?php
|
||||
|
||||
set_exit_overload(function($status = false)
|
||||
{
|
||||
if ($status)
|
||||
{
|
||||
echo $status;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
uopz_overload(ZEND_EXIT, function(){});
|
||||
|
||||
ob_start();
|
||||
@session_start();
|
||||
|
|
|
@ -29,7 +29,7 @@ class ModuleTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
public function testAutoRunParentError()
|
||||
{
|
||||
$this->expectOutputString('Errors encountered, this is a @todo for form validation when calling modules from inside of modules');
|
||||
$this->expectOutputString('');
|
||||
$model = new MockChildModule(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue