Skip to content

Commit 36b585a

Browse files
committed
Refactored: adapted namespaces and names to new structure
1 parent fdcdbfc commit 36b585a

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Diff for: guzzle/phpunit.xml

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
convertErrorsToExceptions="true"
44
convertNoticesToExceptions="true"
55
convertWarningsToExceptions="true"
6-
stopOnError="false"
7-
stopOnFailure="false"
8-
stopOnIncomplete="false"
9-
stopOnSkipped="false"
106
strict="true"
117
>
128

Diff for: guzzle/src/VCR/Example/GithubProjectGuzzle.php renamed to guzzle/src/VCR/Example/Guzzle/GithubProjectGuzzle.php

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

3-
namespace VCR\Example;
3+
namespace VCR\Example\Guzzle;
44

55
use Guzzle\Http\Client;
66
use Guzzle\Http\Exception\ClientErrorResponseException;
77

88
/**
99
* Gets project information from github.
1010
*/
11-
class GithubProjectGuzzle
11+
class GithubProject
1212
{
1313
const GITHUB_API = 'https://api.github.com/';
1414

Diff for: guzzle/test/VCR/Example/GithubProjectGuzzleTest.php renamed to guzzle/test/VCR/Example/Guzzle/GithubProjectGuzzleTest.php

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

3-
namespace VCR\Example;
3+
namespace VCR\Example\Guzzle;
44

55
use Guzzle\Http\Client;
66
use Guzzle\Http\Exception\ClientErrorResponseException;
77

88
/**
99
* Tests Guzzle class.
1010
*/
11-
class GithubProjectGuzzleTest extends \PHPUnit_Framework_TestCase
11+
class GithubProjectTest extends \PHPUnit_Framework_TestCase
1212
{
1313

1414
/**
1515
* @vcr github_adri_php-vcr.yml
1616
*/
1717
public function testGithubInfoForExistingProject()
1818
{
19-
$githubProject = new GithubProjectGuzzle('php-vcr/php-vcr');
19+
$githubProject = new GithubProject('php-vcr/php-vcr');
2020
$info = $githubProject->getInfo();
2121

2222
$this->assertTrue(is_array($info), 'Response is not an array.');
@@ -31,7 +31,7 @@ public function testGithubInfoForExistingProject()
3131
*/
3232
public function testGithubInfoForNonExistingProject()
3333
{
34-
$githubProject = new GithubProjectGuzzle('php-vcr/random_stuff');
34+
$githubProject = new GithubProject('php-vcr/random_stuff');
3535
$info = $githubProject->getInfo();
3636

3737
$this->assertNull($info, 'Response is not null.');

0 commit comments

Comments
 (0)