added unit tests.
This commit is contained in:
@@ -7,7 +7,7 @@ class Benchmark {
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $marks = array();
|
||||
protected static $marks = array();
|
||||
|
||||
/**
|
||||
* Start a benchmark.
|
||||
@@ -32,10 +32,10 @@ class Benchmark {
|
||||
{
|
||||
if (array_key_exists($name, static::$marks))
|
||||
{
|
||||
return number_format((microtime(true) - static::$marks[$name]) * 1000, 2);
|
||||
return (float) number_format((microtime(true) - static::$marks[$name]) * 1000, 2);
|
||||
}
|
||||
|
||||
return 0.0;
|
||||
return (float) 0.0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -119,7 +119,7 @@ class Config {
|
||||
* @param string $file
|
||||
* @return bool
|
||||
*/
|
||||
private function load($file)
|
||||
protected function load($file)
|
||||
{
|
||||
if (isset($this->items[$file])) return true;
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ class Container {
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $singletons = array();
|
||||
public $singletons = array();
|
||||
|
||||
/**
|
||||
* The registered dependencies.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $resolvers = array();
|
||||
protected $resolvers = array();
|
||||
|
||||
/**
|
||||
* Create a new IoC container instance.
|
||||
|
||||
Reference in New Issue
Block a user