rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 351122b9cd672c3d3280fb0769a0eb485b21fc63
parent 81492221e0fd6545987beaac49e35d533a795379
Author: mtrnord <mtrnord1@gmail.com>
Date:   Sun,  4 Oct 2015 20:27:31 +0200

This should fix it :D

Diffstat:
M.travis.yml | 2+-
Mtests/mysqliLoadedTest.php | 9+++++++++
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml @@ -16,4 +16,4 @@ before_script: - chmod +x phpunit.phar - mysql -e 'create database RPICMS;' #RunTests -script: php phpunit.phar --configuration phpunit_$DB.xml --verbose --filter tryDBConnection +script: php phpunit.phar --configuration phpunit_$DB.xml --verbose diff --git a/tests/mysqliLoadedTest.php b/tests/mysqliLoadedTest.php @@ -1,6 +1,15 @@ <?php class mysqliLoadedTest extends PHPUnit_Framework_TestCase { + public function __construct() + { + $obj = new Foobar(); + $this->assertTrue($obj->testForMysqli()); + $this->assertTrue($obj->tryDBConnection()); + } + + + public function testForMysqli() { if (!extension_loaded('mysqli')) {