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:
Josh Sherman 2014-07-12 12:41:47 -04:00
parent 018ae0edc1
commit 260b532a66
3 changed files with 7 additions and 21 deletions

View file

@ -22,20 +22,14 @@ services:
install:
- composer install
- mkdir vendor/php-test-helpers
- git clone https://github.com/php-test-helpers/php-test-helpers.git vendor/php-test-helpers
- cd vendor/php-test-helpers
- phpize
- ./configure --enable-test-helpers
- make
- sudo make install
- cd -
- pecl install uopz
before_script:
- echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "zend_extension = /home/travis/build/joshtronic/pickles/vendor/php-test-helpers/modules/test_helpers.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "zend_extension = uopz.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "uopz.overloads=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mysql test < tests/schema.sql
- mkdir -p build/logs

View file

@ -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();

View file

@ -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);
}