Permalink
Browse files

Switch to plan "Reddit" namespace

  • Loading branch information...
1 parent 935f339 commit bcfaccac3f9e6056531d438c19e790eb7f18d41a @hnrysmth hnrysmth committed Nov 28, 2013
View
@@ -19,7 +19,7 @@
"autoload": {
"psr-0": {
- "RedditApiClient\\": "src/"
+ "Reddit\\": "src/"
}
},
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,5 +1,5 @@
<?php
-namespace RedditApiClient;
+namespace Reddit;
use Guzzle\Service\Client as GuzzleClient;
@@ -1,10 +1,10 @@
<?php
-namespace RedditApiClient;
+namespace Reddit;
use Guzzle\Common\Collection;
use Guzzle\Service\Description\ServiceDescription;
-use RedditApiClient\Client;
-use RedditApiClient\Session;
+use Reddit\Client;
+use Reddit\Session;
class ClientFactory
{
@@ -1,6 +1,5 @@
<?php
-
-namespace RedditApiClient;
+namespace Reddit;
/**
* Reddit
@@ -1,5 +1,5 @@
<?php
-namespace RedditApiClient;
+namespace Reddit;
class Session
{
@@ -1,7 +1,7 @@
<?php
-namespace RedditApiClient\Session;
+namespace Reddit\Session;
-use RedditApiClient\Session;
+use Reddit\Session;
interface Storage
{
@@ -1,7 +1,7 @@
<?php
-namespace RedditApiClient\Session\Storage;
+namespace Reddit\Session\Storage;
-use RedditApiClient\Session;
+use Reddit\Session;
class Chain implements Session\Storage
{
@@ -1,7 +1,7 @@
<?php
-namespace RedditApiClient\Session\Storage;
+namespace Reddit\Session\Storage;
-use RedditApiClient\Session;
+use Reddit\Session;
class Disk implements Session\Storage
{
@@ -1,8 +1,8 @@
<?php
-namespace RedditApiClient\Session\Storage;
+namespace Reddit\Session\Storage;
use Countable;
-use RedditApiClient\Session;
+use Reddit\Session;
class Memory implements Session\Storage, Countable
{
@@ -1,8 +1,8 @@
<?php
-namespace RedditApiClient\Session;
+namespace Reddit\Session;
use Guzzle\Common\Event;
-use RedditApiClient\Session;
+use Reddit\Session;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class Subscriber implements EventSubscriberInterface
@@ -1,10 +1,10 @@
<?php
-namespace RedditApiClient\Test;
+namespace Reddit\Test;
use Guzzle\Service\Description\ServiceDescription;
use PHPUnit_Framework_TestCase;
-use RedditApiClient\Client;
-use RedditApiClient\ClientFactory;
+use Reddit\Client;
+use Reddit\ClientFactory;
class ClientFactoryTest extends PHPUnit_Framework_TestCase
{
View
@@ -1,9 +1,9 @@
<?php
-namespace RedditApiClient\Test;
+namespace Reddit\Test;
use Guzzle\Service\Client as GuzzleClient;
use PHPUnit_Framework_TestCase;
-use RedditApiClient\Client;
+use Reddit\Client;
class ClientTest extends PHPUnit_Framework_TestCase
{
@@ -1,9 +1,9 @@
<?php
-namespace RedditApiClient\Test\Session\Storage;
+namespace Reddit\Test\Session\Storage;
use Mockery as m;
use PHPUnit_Framework_TestCase;
-use RedditApiClient\Session;
+use Reddit\Session;
class ChainTest extends PHPUnit_Framework_TestCase
{
@@ -16,8 +16,8 @@ public function setUp()
{
parent::setUp();
$this->session = new Session('exampleuser', 'swordfish', 'poiu');
- $this->firstImplementation = m::mock('RedditApiClient\Session\Storage');
- $this->secondImplementation = m::mock('RedditApiClient\Session\Storage');
+ $this->firstImplementation = m::mock('Reddit\Session\Storage');
+ $this->secondImplementation = m::mock('Reddit\Session\Storage');
$this->chain = new Session\Storage\Chain(
array(
$this->firstImplementation,
@@ -1,9 +1,9 @@
<?php
-namespace RedditApiClient\Test\Session\Storage;
+namespace Reddit\Test\Session\Storage;
use Mockery as m;
use PHPUnit_Framework_TestCase;
-use RedditApiClient\Session;
+use Reddit\Session;
class MemoryTest extends PHPUnit_Framework_TestCase
{
@@ -1,10 +1,10 @@
<?php
-namespace RedditApiClient\Test\Session;
+namespace Reddit\Test\Session;
use Guzzle\Common\Event;
use Mockery as m;
use PHPUnit_Framework_TestCase;
-use RedditApiClient\Session;
+use Reddit\Session;
class SubscriberTest extends PHPUnit_Framework_TestCase
{
@@ -17,7 +17,7 @@ class SubscriberTest extends PHPUnit_Framework_TestCase
public function setUp()
{
parent::setUp();
- $this->storage = m::mock('RedditApiClient\Session\Storage');
+ $this->storage = m::mock('Reddit\Session\Storage');
$this->subscriber = new Session\Subscriber($this->storage, 'example');
$this->session = new Session('example', 'swordfish', 'poiu');
$this->event = new Event;

0 comments on commit bcfacca

Please sign in to comment.