fixed test harness
This commit is contained in:
parent
3625f5acf0
commit
d24f1050ae
3
.gitignore
vendored
3
.gitignore
vendored
@ -20,6 +20,3 @@ public/include/config/global.inc.sha.php
|
|||||||
.buildpath
|
.buildpath
|
||||||
.project
|
.project
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
# Unit testing
|
|
||||||
tests/phpunit/*
|
|
||||||
|
|||||||
@ -12,6 +12,8 @@ How to add tests
|
|||||||
* Add any new suites to the phpunit.xml file
|
* Add any new suites to the phpunit.xml file
|
||||||
* Below is the suite entry for the sample test in unit/config/SampleTest.php
|
* Below is the suite entry for the sample test in unit/config/SampleTest.php
|
||||||
|
|
||||||
```<testsuite name="SampleTest">
|
```
|
||||||
|
<testsuite name="SampleTest">
|
||||||
<directory>unit/config</directory>
|
<directory>unit/config</directory>
|
||||||
</testsuite>```
|
</testsuite>
|
||||||
|
```
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// these are ONLY here because we're checking config options
|
// these are ONLY here because we're checking config options
|
||||||
// these should NOT be in a normal unit test
|
// these should NOT be in a normal unit test
|
||||||
@ -10,8 +10,8 @@ require_once("PHPUnit/Autoload.php");
|
|||||||
|
|
||||||
class TestDistConfig extends PHPUnit_Framework_Testcase {
|
class TestDistConfig extends PHPUnit_Framework_Testcase {
|
||||||
/**
|
/**
|
||||||
* Test to make sure SALT is sane
|
* Test to make sure SALT is sane
|
||||||
*/
|
*/
|
||||||
function testSalt() {
|
function testSalt() {
|
||||||
$this->assertNotEmpty(SALT);
|
$this->assertNotEmpty(SALT);
|
||||||
$this->assertGreaterThan(1, strlen(SALT));
|
$this->assertGreaterThan(1, strlen(SALT));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user