diff --git a/.travis.yml b/.travis.yml index 8b02103be..4624e399d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,8 @@ php: before_script: - sudo pecl install channel://pecl.php.net/pthreads-0.0.42 - + - git clone --depth=100 --quiet --branch=tests git://github.com/shoghicp/PocketMine-MP.git $(pwd) + script: - phpunit tests/ diff --git a/tests/BinaryRWTest.php b/tests/BinaryRWTest.php deleted file mode 100644 index 8a9f2e2b0..000000000 --- a/tests/BinaryRWTest.php +++ /dev/null @@ -1,15 +0,0 @@ -assertTrue(Utils::readTriad("\x02\x01\x03") === 131331, "Utils::readTriad"); - $this->assertTrue(Utils::readInt("\xff\x02\x01\x03") === -16645885, "Utils::readInt"); - $this->assertTrue(abs(Utils::readFloat("\x49\x02\x01\x03") - 532496.1875) < 0.0001, "Utils::readFloat"); - $this->assertTrue(abs(Utils::readDouble("\x41\x02\x03\x04\x05\x06\x07\x08") - 147552.5024529) < 0.0001, "Utils::readDouble"); - $this->assertTrue(Utils::readLong("\x41\x02\x03\x04\x05\x06\x07\x08") === "4684309878217770760", "Utils::readLong"); - $item = Utils::readSlot("\x00\x09\x08\x00\x00"); - $this->assertTrue(($item instanceof Item) and $item->getID() === STILL_WATER and $item->count === 8 and $item->getMetadata() === 0, "Utils::readSlot"); - } -} \ No newline at end of file diff --git a/tests/phpunit.xml b/tests/phpunit.xml deleted file mode 100644 index 2fa40761e..000000000 --- a/tests/phpunit.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - ./ - - \ No newline at end of file