Commit da46367e authored by Taddeus Kroes's avatar Taddeus Kroes

Lowercased namespace

parent b98089d5
......@@ -6,7 +6,7 @@
* @date 13-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'base.php';
......
......@@ -6,7 +6,7 @@
* @date 13-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'logger.php';
......
......@@ -6,7 +6,7 @@
* @date 13-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'base.php';
......
......@@ -6,7 +6,7 @@
* @date 13-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'base.php';
......
......@@ -6,7 +6,7 @@
* @date 13-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'base.php';
......@@ -16,7 +16,7 @@ require_once 'base.php';
* Each tree node has a (non-unique) name, a list of variables, and zero or
* more children.
*
* @package WebBasics
* @package webbasics
*/
class Node extends Base {
/**
......
......@@ -7,7 +7,7 @@
* @date 14-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'base.php';
......
......@@ -6,7 +6,7 @@
* @date 14-07-2012
*/
namespace WebBasics;
namespace webbasics;
require_once 'node.php';
......
<?php
require_once 'autoloader.php';
use WebBasics\Autoloader;
use webbasics\Autoloader;
define('PATH', 'tests/_files/');
......@@ -38,7 +38,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
* @depends test_set_root_namespace
*/
function test_strip_root_namespace() {
$strip = new ReflectionMethod('WebBasics\Autoloader', 'strip_root_namespace');
$strip = new ReflectionMethod('webbasics\Autoloader', 'strip_root_namespace');
$strip->setAccessible(true);
$this->autoloader->set_root_namespace('Foo');
......@@ -84,7 +84,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
/**
* @depends test_load_class_not_found
* @expectedException WebBasics\FileNotFoundError
* @expectedException webbasics\FileNotFoundError
* @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
*/
function test_load_class_not_found_error() {
......@@ -94,7 +94,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
/**
* @depends test_load_class_not_found
* @expectedException WebBasics\FileNotFoundError
* @expectedException webbasics\FileNotFoundError
* @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
*/
function test_load_class_not_found_noerror_overwrite() {
......
<?php
require_once 'base.php';
use WebBasics\Base;
use webbasics\Base;
class BaseExtension extends Base {
function __construct($foo, $bar) {
......@@ -16,10 +16,10 @@ class BaseTest extends PHPUnit_Framework_TestCase {
}
function test_asprintf() {
$this->assertEquals(WebBasics\asprintf('%(foo) baz', array('foo' => 'bar')), 'bar baz');
$this->assertEquals(WebBasics\asprintf('%(foo) baz %(foo)',
$this->assertEquals(webbasics\asprintf('%(foo) baz', array('foo' => 'bar')), 'bar baz');
$this->assertEquals(webbasics\asprintf('%(foo) baz %(foo)',
array('foo' => 'bar')), 'bar baz bar');
$this->assertEquals(WebBasics\asprintf('%(bar) baz %(foo)',
$this->assertEquals(webbasics\asprintf('%(bar) baz %(foo)',
array('foo' => 'bar', 'bar' => 'foobar')), 'foobar baz bar');
}
......
<?php
require_once 'collection.php';
use WebBasics\Collection;
use webbasics\Collection;
class IdObject {
static $count = 0;
......
<?php
require_once 'logger.php';
use WebBasics\Logger;
use webbasics\Logger;
define('NAME', 'Testlogger');
define('FORMAT', '%(level): %(message)');
......
<?php
require_once 'node.php';
use \WebBasics\Node;
use \webbasics\Node;
class NodeTest extends PHPUnit_Framework_TestCase {
var $autoloader;
......
<?php
require_once 'router.php';
use WebBasics\Router;
use webbasics\Router;
function test_handler_no_args() {
return true;
......
<?php
require_once 'template.php';
use WebBasics\Template;
use WebBasics\Node;
use webbasics\Template;
use webbasics\Node;
define('TEMPLATES_DIR', 'tests/_files/templates/');
define('FOOBAR', 'foobar_const');
......@@ -51,7 +51,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
}
/**
* @expectedException WebBasics\FileNotFoundError
* @expectedException webbasics\FileNotFoundError
* @expectedExceptionMessage Directory "non_existing_folder/" does not exist.
*/
function test_add_root_failure() {
......@@ -59,7 +59,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
}
function assert_include_path_equals($expected) {
$include_path = new ReflectionProperty('WebBasics\Template', 'include_path');
$include_path = new ReflectionProperty('webbasics\Template', 'include_path');
$include_path->setAccessible(true);
$this->assertEquals($expected, $include_path->getValue());
}
......@@ -167,7 +167,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
/**
* @depends test_parse_blocks_blocks
* @expectedException WebBasics\ParseError
* @expectedException webbasics\ParseError
* @expectedExceptionMessage Parse error in file tests/_files/templates/unexpected_end.tpl, line 5: unexpected {end}
*/
function test_parse_blocks_unexpected_end() {
......@@ -176,7 +176,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
/**
* @depends test_parse_blocks_blocks
* @expectedException WebBasics\ParseError
* @expectedException webbasics\ParseError
* @expectedExceptionMessage Parse error in file tests/_files/templates/missing_end.tpl, line 6: missing {end}
*/
function test_parse_blocks_missing_end() {
......@@ -228,7 +228,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
function evaluate_expression() {
$args = func_get_args();
$eval = new ReflectionMethod('WebBasics\Template', 'evaluate_expression');
$eval = new ReflectionMethod('webbasics\Template', 'evaluate_expression');
$eval->setAccessible(true);
return $eval->invokeArgs(null, $args);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment