fixed test harness

This commit is contained in:
xisi 2014-01-17 09:31:39 -05:00
parent 3625f5acf0
commit d24f1050ae
3 changed files with 7 additions and 8 deletions

3
.gitignore vendored
View File

@ -20,6 +20,3 @@ public/include/config/global.inc.sha.php
.buildpath
.project
.settings
# Unit testing
tests/phpunit/*

View File

@ -12,6 +12,8 @@ How to add tests
* Add any new suites to the phpunit.xml file
* Below is the suite entry for the sample test in unit/config/SampleTest.php
```<testsuite name="SampleTest">
```
<testsuite name="SampleTest">
<directory>unit/config</directory>
</testsuite>```
</testsuite>
```

View File

@ -1,4 +1,4 @@
<?php
<?php
// these are ONLY here because we're checking config options
// these should NOT be in a normal unit test
@ -10,8 +10,8 @@ require_once("PHPUnit/Autoload.php");
class TestDistConfig extends PHPUnit_Framework_Testcase {
/**
* Test to make sure SALT is sane
*/
* Test to make sure SALT is sane
*/
function testSalt() {
$this->assertNotEmpty(SALT);
$this->assertGreaterThan(1, strlen(SALT));