Browse Source

better coverage

master
Anton Grebnev 13 years ago
parent
commit
3c3071fb15
  1. 1
      tests/ConfigTest.php
  2. 4
      tests/LoadTest.php
  3. 1
      tests/RegistryTest.php
  4. 1
      tests/util/AutoloadBuilderTest.php

1
tests/ConfigTest.php

@ -44,4 +44,5 @@ class ConfigTest extends PHPUnit_Framework_TestCase
$new_arr = Config::get(0);
$this->assertEquals('ConfigArray', get_class($new_arr));
}
}

4
tests/LoadTest.php

@ -82,7 +82,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
public function testAutoloadGetFilePath()
{
$autoload = require(self::$file);
$this->assertNotEmpty($autoload['Registry']);
$this->assertNotEmpty(Load::getFilePath('Registry'));
}
/**
@ -92,7 +92,7 @@ class LoadTest extends PHPUnit_Framework_TestCase
public function testAutoloadGetFilePathNullIndex()
{
$autoload = require(self::$file);
$this->assertNotEmpty($autoload['anton']);
$this->assertNotEmpty(Load::getFilePath('anton'));
}
public static function tearDownAfterClass()

1
tests/RegistryTest.php

@ -19,6 +19,7 @@ class RegistryTest extends PHPUnit_Framework_TestCase
public function setUp()
{
$this->assertFalse(Registry::isRegistered(10));
$this->_registry = Registry::getInstance();
}

1
tests/util/AutoloadBuilderTest.php

@ -65,6 +65,7 @@ class AutoloadBuilderTest extends PHPUnit_Framework_TestCase
$builder->build();
}
public function testAutoloadFileExists()
{
$this->assertFileExists(self::$file);

Loading…
Cancel
Save