Browse files

Cleaning up class references.

  • Loading branch information...
1 parent 4980010 commit d7ba3e02cd1b2b3795906108cc6c49979394926f @nateabele nateabele committed May 15, 2012
View
2 analysis/Inspector.php
@@ -30,7 +30,7 @@ class Inspector extends \lithium\core\StaticObject {
* @var array
*/
protected static $_classes = array(
- 'collection' => '\lithium\util\Collection'
+ 'collection' => 'lithium\util\Collection'
);
/**
View
2 analysis/logger/adapter/Cache.php
@@ -40,7 +40,7 @@ class Cache extends \lithium\core\Object {
* @var array
*/
protected $_classes = array(
- 'cache' => '\lithium\storage\Cache'
+ 'cache' => 'lithium\storage\Cache'
);
/**
View
4 test/Report.php
@@ -26,7 +26,7 @@
* {{{
* $report = new Report(array(
* 'title' => 'Test Report Title',
- * 'group' => new Group(array('data' => array('\lithium\tests\cases\net\http\MediaTest'))),
+ * 'group' => new Group(array('data' => array('lithium\tests\cases\net\http\MediaTest'))),
* 'format' => 'html',
* 'reporter' => 'html'
* ));
@@ -46,7 +46,7 @@
* {{{
* $report = new Report(array(
* 'title' => 'Test Report Title',
- * 'group' => new Group(array('data' => array('\lithium\tests\cases\net\http\MediaTest'))),
+ * 'group' => new Group(array('data' => array('lithium\tests\cases\net\http\MediaTest'))),
* 'filters' => array('Complexity')
* ));
*
View
14 tests/cases/analysis/InspectorTest.php
@@ -27,8 +27,8 @@ class InspectorTest extends \lithium\test\Unit {
* @return void
*/
public function testBasicMethodInspection() {
- $class = '\lithium\analysis\Inspector';
- $parent = '\lithium\core\StaticObject';
+ $class = 'lithium\analysis\Inspector';
+ $parent = 'lithium\core\StaticObject';
$expected = array_diff(get_class_methods($class), get_class_methods($parent));
$result = array_keys(Inspector::methods($class, 'extents'));
@@ -39,7 +39,7 @@ public function testBasicMethodInspection() {
)));
$this->assertEqual($expected, $result);
- $this->assertNull(Inspector::methods('\lithium\core\Foo'));
+ $this->assertNull(Inspector::methods('lithium\core\Foo'));
$result = Inspector::methods('stdClass', 'extents');
$this->assertEqual(array(), $result);
@@ -119,7 +119,7 @@ public function testLineIntrospection() {
$this->assertEqual($expected, $result);
$this->expectException('/Missing argument 2/');
- $this->assertNull(Inspector::lines('\lithium\core\Foo'));
+ $this->assertNull(Inspector::lines('lithium\core\Foo'));
$this->assertNull(Inspector::lines(__CLASS__, array()));
}
@@ -178,9 +178,9 @@ public function testClassFileIntrospection() {
* @return void
*/
public function testTypeDetection() {
- $this->assertEqual('namespace', Inspector::type('\lithium\util'));
- $this->assertEqual('namespace', Inspector::type('\lithium\analysis'));
- $this->assertEqual('class', Inspector::type('\lithium\analysis\Inspector'));
+ $this->assertEqual('namespace', Inspector::type('lithium\util'));
+ $this->assertEqual('namespace', Inspector::type('lithium\analysis'));
+ $this->assertEqual('class', Inspector::type('lithium\analysis\Inspector'));
$this->assertEqual('property', Inspector::type('Inspector::$_classes'));
$this->assertEqual('method', Inspector::type('Inspector::type'));
$this->assertEqual('method', Inspector::type('Inspector::type()'));
View
8 tests/cases/console/DispatcherTest.php
@@ -35,9 +35,7 @@ public function testEmptyConfigReturnRules() {
public function testConfigWithClasses() {
Dispatcher::config(array(
- 'classes' => array(
- 'request' => 'lithium\tests\mocks\console\MockDispatcherRequest'
- )
+ 'classes' => array('request' => 'lithium\tests\mocks\console\MockDispatcherRequest')
));
$expected = 'run';
$result = Dispatcher::run()->testAction;
@@ -46,9 +44,7 @@ public function testConfigWithClasses() {
public function testRunWithCommand() {
$response = Dispatcher::run(new Request(array(
- 'args' => array(
- 'lithium\tests\mocks\console\MockDispatcherCommand'
- )
+ 'args' => array('lithium\tests\mocks\console\MockDispatcherCommand')
)));
$expected = 'run';
$result = $response->testAction;
View
2 tests/cases/core/StaticObjectTest.php
@@ -71,7 +71,7 @@ public function testMethodFiltering() {
* @return void
*/
public function testMethodInvocationWithParameters() {
- $class = '\lithium\tests\mocks\core\MockStaticMethodFiltering';
+ $class = 'lithium\tests\mocks\core\MockStaticMethodFiltering';
$this->assertEqual($class::invokeMethod('foo'), array());
$this->assertEqual($class::invokeMethod('foo', array('bar')), array('bar'));
View
2 tests/cases/data/collection/RecordSetTest.php
@@ -371,7 +371,7 @@ public function testMeta() {
}
public function testTo() {
- Collection::formats('\lithium\net\http\Media');
+ Collection::formats('lithium\net\http\Media');
$this->assertFalse(isset($this->_recordSet[0]));
$expected = array(
View
2 tests/cases/data/entity/RecordTest.php
@@ -19,7 +19,7 @@ public function setUp() {
$this->_configs = Connections::config();
Connections::config(array('mock-source' => array(
- 'type' => '\lithium\tests\mocks\data\MockSource'
+ 'type' => 'lithium\tests\mocks\data\MockSource'
)));
$model = 'lithium\tests\mocks\data\MockPost';
$model::config(array('connection' => 'mock-source', 'key' => 'id'));
View
22 tests/cases/test/ReportTest.php
@@ -15,12 +15,12 @@ class ReportTest extends \lithium\test\Unit {
public function testInit() {
$report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockUnitTest',
- 'group' => new Group(array('data' => array('\lithium\tests\mocks\test\MockUnitTest')))
+ 'title' => 'lithium\tests\mocks\test\MockUnitTest',
+ 'group' => new Group(array('data' => array('lithium\tests\mocks\test\MockUnitTest')))
));
$report->run();
- $expected = '\lithium\tests\mocks\test\MockUnitTest';
+ $expected = 'lithium\tests\mocks\test\MockUnitTest';
$result = $report->title;
$this->assertEqual($expected, $result);
@@ -35,9 +35,9 @@ public function testInit() {
public function testFilters() {
$report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockFilterClassTest',
+ 'title' => 'lithium\tests\mocks\test\MockFilterClassTest',
'group' => new Group(
- array('data' => array('\lithium\tests\mocks\test\MockFilterClassTest'))
+ array('data' => array('lithium\tests\mocks\test\MockFilterClassTest'))
),
'filters' => array("Complexity" => ""),
'format' => 'html',
@@ -53,8 +53,8 @@ public function testFilters() {
public function testStats() {
$report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockUnitTest',
- 'group' => new Group(array('data' => array('\lithium\tests\mocks\test\MockUnitTest')))
+ 'title' => 'lithium\tests\mocks\test\MockUnitTest',
+ 'group' => new Group(array('data' => array('lithium\tests\mocks\test\MockUnitTest')))
));
$report->run();
@@ -67,8 +67,8 @@ public function testStats() {
public function testRender() {
$report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockUnitTest',
- 'group' => new Group(array('data' => array('\lithium\tests\mocks\test\MockUnitTest'))),
+ 'title' => 'lithium\tests\mocks\test\MockUnitTest',
+ 'group' => new Group(array('data' => array('lithium\tests\mocks\test\MockUnitTest'))),
'format' => 'html',
'reporter' => 'html'
));
@@ -80,9 +80,9 @@ public function testRender() {
public function testSingleFilter() {
$report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockFilterClassTest',
+ 'title' => 'lithium\tests\mocks\test\MockFilterClassTest',
'group' => new Group(array(
- 'data' => array('\lithium\tests\mocks\test\MockFilterClassTest')
+ 'data' => array('lithium\tests\mocks\test\MockFilterClassTest')
)),
'filters' => array("Complexity" => "")
));
View
2 tests/cases/util/CollectionTest.php
@@ -17,7 +17,7 @@
class CollectionTest extends \lithium\test\Unit {
public function setUp() {
- Collection::formats('\lithium\net\http\Media');
+ Collection::formats('lithium\net\http\Media');
}
public function testArrayLike() {
View
6 tests/integration/net/http/ServiceTest.php
@@ -14,7 +14,7 @@ class ServiceTest extends \lithium\test\Integration {
public function testStreamGet() {
$service = new Service(array(
- 'classes' => array('socket' => '\lithium\net\socket\Stream')
+ 'classes' => array('socket' => 'lithium\net\socket\Stream')
));
$service->head();
@@ -25,7 +25,7 @@ public function testStreamGet() {
public function testContextGet() {
$service = new Service(array(
- 'classes' => array('socket' => '\lithium\net\socket\Context')
+ 'classes' => array('socket' => 'lithium\net\socket\Context')
));
$service->head();
@@ -36,7 +36,7 @@ public function testContextGet() {
public function testCurlGet() {
$service = new Service(array(
- 'classes' => array('socket' => '\lithium\net\socket\Curl')
+ 'classes' => array('socket' => 'lithium\net\socket\Curl')
));
$service->head();
View
8 tests/integration/test/FilterTest.php
@@ -23,9 +23,9 @@ public function skip() {
public function setUp() {
$this->report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockFilterTest',
+ 'title' => 'lithium\tests\mocks\test\MockFilterTest',
'group' => new Group(
- array('data' => array('\lithium\tests\mocks\test\MockFilterClassTest'))
+ array('data' => array('lithium\tests\mocks\test\MockFilterClassTest'))
)
));
}
@@ -60,9 +60,9 @@ public function testSingleTestWithMultipleFilters() {
}, $filters);
$report = new Report(array(
- 'title' => '\lithium\tests\mocks\test\MockFilterTest',
+ 'title' => 'lithium\tests\mocks\test\MockFilterTest',
'group' => new Group(
- array('data' => array('\lithium\tests\mocks\test\MockFilterClassTest'))
+ array('data' => array('lithium\tests\mocks\test\MockFilterClassTest'))
)
));
View
2 tests/mocks/console/MockCommand.php
@@ -37,7 +37,7 @@ class MockCommand extends \lithium\console\Command {
protected $_dontShow = null;
protected $_classes = array(
- 'response' => '\lithium\tests\mocks\console\MockResponse'
+ 'response' => 'lithium\tests\mocks\console\MockResponse'
);
public function testRun() {
View
2 tests/mocks/console/MockDispatcherCommand.php
@@ -13,7 +13,7 @@
class MockDispatcherCommand extends \lithium\console\Command {
protected $_classes = array(
- 'response' => '\lithium\tests\mocks\console\MockResponse'
+ 'response' => 'lithium\tests\mocks\console\MockResponse'
);
public function testRun() {
View
2 tests/mocks/console/command/MockCommandHelp.php
@@ -41,7 +41,7 @@ class MockCommandHelp extends \lithium\console\Command {
* @var array
*/
protected $_classes = array(
- 'response' => '\lithium\tests\mocks\console\MockResponse'
+ 'response' => 'lithium\tests\mocks\console\MockResponse'
);
/**
View
2 tests/mocks/console/command/MockCreate.php
@@ -11,7 +11,7 @@
class MockCreate extends \lithium\console\command\Create {
protected $_classes = array(
- 'response' => '\lithium\tests\mocks\console\MockResponse'
+ 'response' => 'lithium\tests\mocks\console\MockResponse'
);
public function save($template, $params = array()) {
View
2 tests/mocks/core/MockInstantiator.php
@@ -10,7 +10,7 @@
class MockInstantiator extends \lithium\core\Object {
- protected $_classes = array('request' => '\lithium\tests\mocks\core\MockRequest');
+ protected $_classes = array('request' => 'lithium\tests\mocks\core\MockRequest');
public function instance($name, array $config = array()) {
return $this->_instance($name, $config);
View
2 tests/mocks/core/MockStaticInstantiator.php
@@ -10,7 +10,7 @@
class MockStaticInstantiator extends \lithium\core\StaticObject {
- protected static $_classes = array('request' => '\lithium\tests\mocks\core\MockRequest');
+ protected static $_classes = array('request' => 'lithium\tests\mocks\core\MockRequest');
public static function instance($name, array $config = array()) {
return static::_instance($name, $config);
View
2 util/Collection.php
@@ -159,7 +159,7 @@ class Collection extends \lithium\core\Object implements \ArrayAccess, \Iterator
*/
public static function formats($format, $handler = null) {
if ($format === false) {
- return static::$_formats = array('array' => '\lithium\util\Collection::toArray');
+ return static::$_formats = array('array' => 'lithium\util\Collection::toArray');
}
if ((is_null($handler)) && class_exists($format)) {
return static::$_formats[] = $format;

0 comments on commit d7ba3e0

Please sign in to comment.