More tests and 100% coverage achievements!

Also fixed a few minor bugs and reworked Browser class to not use the constant
UNIT_TESTING so I could get the class to 100% coverage. Adds a dependency of
testing_helpers which I believe is available on Travis CI by default. Up to 75%
coverage, w00t w00t!
This commit is contained in:
Joshua Sherman 2014-01-12 16:09:48 -05:00
parent faaefc1b82
commit 8db383601e
15 changed files with 136 additions and 62 deletions

View file

@ -1,7 +1,9 @@
<?php
set_exit_overload(function(){ return false; });
ob_start();
session_start();
@session_start();
require_once 'vendors/composer/autoload.php';
@ -11,8 +13,6 @@ if (!defined('SITE_PATH'))
{
define('SECURITY_LEVEL_USER', 10);
define('SITE_PATH', org\bovigo\vfs\vfsStream::url('site/'));
// This isn't ideal but it helps a ton when testing the Browser class.
define('UNIT_TESTING', true);
}
require_once 'pickles.php';