Commit da46367e authored by Taddeus Kroes's avatar Taddeus Kroes

Lowercased namespace

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