Skip to content

Commit 0270c66

Browse files
committedApr 26, 2017
Namespaces are case sensitive.
1 parent ba8a3a0 commit 0270c66

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed
 

‎app/Console/Commands/FetchGithubActivityStream.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Console\Commands;
44

5-
use App\Github\ActivityStreams\GithubStream;
5+
use App\GitHub\ActivityStreams\GithubStream;
66
use Illuminate\Console\Command;
77

88
class FetchGithubActivityStream extends Command
@@ -13,13 +13,13 @@ class FetchGithubActivityStream extends Command
1313
/** @var string */
1414
protected $description = 'Fetch the Github activity stream';
1515

16-
/** @var \App\Github\ActivityStreams\GithubStream */
16+
/** @var \App\GitHub\ActivityStreams\GithubStream */
1717
protected $githubActivityStream;
1818

1919
/**
2020
* ConnectTwitterStream constructor.
2121
*
22-
* @param \App\Github\ActivityStreams\GithubStream $githubStream
22+
* @param \App\GitHub\ActivityStreams\GithubStream $githubStream
2323
*/
2424
public function __construct(GithubStream $githubStream)
2525
{

‎app/GitHub/Activity.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Github;
3+
namespace App\GitHub;
44

55
use Illuminate\Database\Eloquent\Model;
66

‎app/GitHub/ActivityStreams/GithubStream.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace App\Github\ActivityStreams;
3+
namespace App\GitHub\ActivityStreams;
44

55
use App\ActivityStreams\PeriodicStream;
66
use App\ActivityStreams\PeriodicStreamInterface;
7-
use App\Github\Jobs\ProcessActivity;
7+
use App\GitHub\Jobs\ProcessActivity;
88
use Carbon\Carbon;
99
use Illuminate\Support\Collection;
1010
use Illuminate\Foundation\Bus\DispatchesJobs;

‎app/GitHub/Jobs/ProcessActivity.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace App\Github\Jobs;
3+
namespace App\GitHub\Jobs;
44

5-
use App\Github\Activity;
5+
use App\GitHub\Activity;
66
use Carbon\Carbon;
77
use Illuminate\Bus\Queueable;
88
use Illuminate\Queue\SerializesModels;

‎app/Providers/StreamServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Providers;
44

5-
use App\Github\ActivityStreams\GithubStream;
5+
use App\GitHub\ActivityStreams\GithubStream;
66
use App\Twitter\ActivityStreams\TwitterStream;
77
use GuzzleHttp\Client;
88
use GuzzleHttp\ClientInterface;

‎tests/ActivityStreams/GithubStreamTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class GithubStreamTest extends TestCase
44
{
55
use \Illuminate\Foundation\Testing\DatabaseMigrations;
66

7-
/** @var \App\Github\ActivityStreams\GithubStream */
7+
/** @var \App\GitHub\ActivityStreams\GithubStream */
88
private $githubStream;
99

1010
/** @var string fake GitHub API response body */
@@ -32,7 +32,7 @@ public function setUp()
3232
$client->method('get')->willReturn($response);
3333
$response->method('getBody')->willReturn($this->fakeResponseBody);
3434

35-
$this->githubStream = new \App\Github\ActivityStreams\GithubStream($client);
35+
$this->githubStream = new \App\GitHub\ActivityStreams\GithubStream($client);
3636
}
3737

3838
public function testImplementsPeriodicStream()
@@ -57,7 +57,7 @@ public function testNewActivityDispatchesJob()
5757
{
5858
$this->fakeResponseBody->method('getContents')->willReturn($this->getFakeGithubActivity());
5959

60-
$this->expectsJobs([\App\Github\Jobs\ProcessActivity::class]);
60+
$this->expectsJobs([\App\GitHub\Jobs\ProcessActivity::class]);
6161

6262
$this->githubStream->consume();
6363
}

‎tests/Http/Controllers/StreamControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class StreamControllerTest extends TestCase
1010

1111
public function testStreamFetch()
1212
{
13-
$streamMock = Mockery::mock(\App\Github\ActivityStreams\GithubStream::class)->makePartial();
13+
$streamMock = Mockery::mock(\App\GitHub\ActivityStreams\GithubStream::class)->makePartial();
1414
$sessionMock = Mockery::mock(\Illuminate\Session\Store::class)->makePartial();
1515
$requestMock = Mockery::mock(\Illuminate\Http\Request::class)->makePartial();
1616

0 commit comments

Comments
 (0)
Please sign in to comment.