diff options
author | mrjive <mrjive@mrjive.it> | 2018-01-16 11:45:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 11:45:01 +0100 |
commit | e81949bb095448881ce83605a50454d0c3c40782 (patch) | |
tree | bd15059a020152b5dc59c265e22a27251efe0de4 /tests | |
parent | b4f8f4df7bc5cc8a74240506cd536224cb31e114 (diff) | |
parent | 9aadcb0bd40a8f773dc164f7dadc8c238fff9954 (diff) | |
download | volse-hubzilla-e81949bb095448881ce83605a50454d0c3c40782.tar.gz volse-hubzilla-e81949bb095448881ce83605a50454d0c3c40782.tar.bz2 volse-hubzilla-e81949bb095448881ce83605a50454d0c3c40782.zip |
Merge pull request #7 from redmatrix/dev
Dev
Diffstat (limited to 'tests')
-rw-r--r-- | tests/infection.json.dist | 15 | ||||
l--------- | tests/phpunit-mariadb.xml | 1 | ||||
-rw-r--r-- | tests/phpunit-pgsql.xml | 1 | ||||
-rw-r--r-- | tests/phpunit.xml.dist (renamed from tests/phpunit-mysql.xml) | 3 | ||||
-rw-r--r-- | tests/unit/AutonameTest.php | 8 |
5 files changed, 22 insertions, 6 deletions
diff --git a/tests/infection.json.dist b/tests/infection.json.dist new file mode 100644 index 000000000..36b251982 --- /dev/null +++ b/tests/infection.json.dist @@ -0,0 +1,15 @@ +{ + "timeout": 13, + "source": { + "directories": [ + "include", + "Zotlabs" + ] + }, + "logs": { + "text": "tests/results/infection-log.txt" + }, + "phpUnit": { + "configDir": "tests" + } +} diff --git a/tests/phpunit-mariadb.xml b/tests/phpunit-mariadb.xml deleted file mode 120000 index 63656b78b..000000000 --- a/tests/phpunit-mariadb.xml +++ /dev/null @@ -1 +0,0 @@ -phpunit-mysql.xml
\ No newline at end of file diff --git a/tests/phpunit-pgsql.xml b/tests/phpunit-pgsql.xml index ace14e196..ec4a6fc2d 100644 --- a/tests/phpunit-pgsql.xml +++ b/tests/phpunit-pgsql.xml @@ -30,5 +30,6 @@ <log type="coverage-clover" target="./results/coverage-clover.xml"/> <log type="coverage-html" target="./results/coverage-report/" lowUpperBound="35" highLowerBound="70"/> + <log type="testdox-text" target="./results/testdox.txt"/> </logging> </phpunit> diff --git a/tests/phpunit-mysql.xml b/tests/phpunit.xml.dist index 171211094..a22317b08 100644 --- a/tests/phpunit-mysql.xml +++ b/tests/phpunit.xml.dist @@ -14,7 +14,7 @@ <directory suffix="Test.php" prefix="API">./unit/</directory> </testsuite> <testsuite name="Ex-/Import Test Suite"> - <directory suffix="Test.php">./unit/eximport/</directory> + <!--<directory suffix="Test.php">./unit/eximport/</directory>--> </testsuite> <groups> <exclude> @@ -33,5 +33,6 @@ <log type="coverage-clover" target="./results/coverage-clover.xml"/> <log type="coverage-html" target="./results/coverage-report/" lowUpperBound="35" highLowerBound="70"/> + <log type="testdox-text" target="./results/testdox.txt"/> </logging> </phpunit> diff --git a/tests/unit/AutonameTest.php b/tests/unit/AutonameTest.php index 9f92f736f..33e237bb9 100644 --- a/tests/unit/AutonameTest.php +++ b/tests/unit/AutonameTest.php @@ -57,7 +57,7 @@ class AutonameTest extends TestCase { // public function testAutonameMaxLength() { // $autoname2=autoname(PHP_INT_MAX); - // $this->assertEquals(PHP_INT_MAX, count($autoname2)); + // $this->assertEquals(PHP_INT_MAX, strlen($autoname2)); // } /** @@ -65,14 +65,14 @@ class AutonameTest extends TestCase { */ public function testAutonameLength1() { $autoname1=autoname(1); - $this->assertEquals(1, count($autoname1)); + $this->assertEquals(1, strlen($autoname1)); $autoname2=autoname(1); - $this->assertEquals(1, count($autoname2)); + $this->assertEquals(1, strlen($autoname2)); // The following test is problematic, with only 26 possibilities // generating the same thing twice happens often aka // birthday paradox // $this->assertFalse($autoname1==$autoname2); } -}
\ No newline at end of file +} |