diff --git a/.travis.yml b/.travis.yml index 1ab2e3e..66d78a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,13 @@ -language: objective-c +language: php -php: - - 5.4 - - 5.5 - -matrix: - allow_failures: - - php: 5.5 +before_install: + - wget https://scrutinizer-ci.com/ocular.phar script: - - sudo ant -Dos.family=mac create-pkg + - sudo chown $USER /opt + - ant composer-init + - ant -Dprepare.distribution.build=false build + - php ocular.phar code-coverage:upload --format=php-clover $TRAVIS_BUILD_DIR/target/reports/unit/clover.xml notifications: email: tw@techdivision.com diff --git a/build.xml b/build.xml index db032db..75f07e8 100644 --- a/build.xml +++ b/build.xml @@ -1,6 +1,6 @@ - + @@ -30,6 +30,11 @@ + + + + + @@ -48,12 +53,6 @@ - - - - - - @@ -439,7 +438,7 @@ - + @@ -1855,7 +1854,7 @@ - + diff --git a/tests/AppserverIo/Php/Runtime/RuntimeTest.php b/tests/AppserverIo/Php/Runtime/RuntimeTest.php index 55c425d..be50fb5 100644 --- a/tests/AppserverIo/Php/Runtime/RuntimeTest.php +++ b/tests/AppserverIo/Php/Runtime/RuntimeTest.php @@ -24,7 +24,7 @@ namespace AppserverIo\Php\Runtime; /** - * Dummy test implementation. + * Runtime test implementations. * * @category Appserver * @package Psr @@ -39,12 +39,27 @@ class RuntimeTest extends \PHPUnit_Framework_TestCase { /** - * A dummy test implementation. + * Tests if pthreads is available. * * @return void */ - public function testDummy() + public function testPthreadsAvailable() { - $this->assertTrue(true); + $this->assertTrue(extension_loaded('pthreads')); + } + + /** + * Tests if the threaded classes are available. + * + * @return void + */ + public function testThreadClassAvailable() + { + $this->assertTrue(class_exists('\Pool')); + $this->assertTrue(class_exists('\Cond')); + $this->assertTrue(class_exists('\Mutex')); + $this->assertTrue(class_exists('\Thread')); + $this->assertTrue(class_exists('\Worker')); + $this->assertTrue(class_exists('\Stackable')); } }