Skip to content

Commit

Permalink
Rename ErrorNot class to Services_ErrorNot
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Mar 8, 2010
1 parent 792bb8e commit 2bc3fa8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion TODO
@@ -1,3 +1,2 @@
* manage 422 error code from API
* pear package
* rename to Services_ErrorNot
4 changes: 2 additions & 2 deletions errornot.php
Expand Up @@ -18,9 +18,9 @@
*/

/**
* @package ErrorNot
* @package Services_ErrorNot
*/
class ErrorNot
class Services_ErrorNot
{
protected $url;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli_previous_exception_handler.php
Expand Up @@ -21,7 +21,7 @@ public function sendRequest(HTTP_Request2 $request)
}

$mock_network = createMockRequest('test_ok.txt', 'MockAdapterWithNotify');
$errornot = new ErrorNot('http://localhost:3000/', 'test-key', true);
$errornot = new Services_ErrorNot('http://localhost:3000/', 'test-key', true);
$errornot->setNetworkAdapter($mock_network);

throw new Exception('test');
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli_simple_exception_handler.php
Expand Up @@ -12,7 +12,7 @@ public function sendRequest(HTTP_Request2 $request)
}

$mock_network = createMockRequest('test_ok.txt', 'MockAdapterWithNotify');
$errornot = new ErrorNot('http://localhost:3000/', 'test-key', true);
$errornot = new Services_ErrorNot('http://localhost:3000/', 'test-key', true);
$errornot->setNetworkAdapter($mock_network);

throw new Exception('test');
Expand Down
2 changes: 1 addition & 1 deletion tests/test_errornot.php
Expand Up @@ -9,7 +9,7 @@ class TestErrorNot extends UnitTestCase
{
protected function createMockRequest($url = 'http://localhost:3000/', $response_file = 'test_ok.txt')
{
$errornot = new ErrorNot($url, 'test-key');
$errornot = new Services_ErrorNot($url, 'test-key');
$mock_network = createMockRequest($response_file, 'MyMockAdapter');
$errornot->setNetworkAdapter($mock_network);
return array($errornot, $mock_network);
Expand Down

0 comments on commit 2bc3fa8

Please sign in to comment.