File tree 3 files changed +6
-10
lines changed
3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 3
3
convertErrorsToExceptions =" true"
4
4
convertNoticesToExceptions =" true"
5
5
convertWarningsToExceptions =" true"
6
- stopOnError =" false"
7
- stopOnFailure =" false"
8
- stopOnIncomplete =" false"
9
- stopOnSkipped =" false"
10
6
strict =" true"
11
7
>
12
8
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace VCR \Example ;
3
+ namespace VCR \Example \ Guzzle ;
4
4
5
5
use Guzzle \Http \Client ;
6
6
use Guzzle \Http \Exception \ClientErrorResponseException ;
7
7
8
8
/**
9
9
* Gets project information from github.
10
10
*/
11
- class GithubProjectGuzzle
11
+ class GithubProject
12
12
{
13
13
const GITHUB_API = 'https://api.github.com/ ' ;
14
14
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace VCR \Example ;
3
+ namespace VCR \Example \ Guzzle ;
4
4
5
5
use Guzzle \Http \Client ;
6
6
use Guzzle \Http \Exception \ClientErrorResponseException ;
7
7
8
8
/**
9
9
* Tests Guzzle class.
10
10
*/
11
- class GithubProjectGuzzleTest extends \PHPUnit_Framework_TestCase
11
+ class GithubProjectTest extends \PHPUnit_Framework_TestCase
12
12
{
13
13
14
14
/**
15
15
* @vcr github_adri_php-vcr.yml
16
16
*/
17
17
public function testGithubInfoForExistingProject ()
18
18
{
19
- $ githubProject = new GithubProjectGuzzle ('php-vcr/php-vcr ' );
19
+ $ githubProject = new GithubProject ('php-vcr/php-vcr ' );
20
20
$ info = $ githubProject ->getInfo ();
21
21
22
22
$ this ->assertTrue (is_array ($ info ), 'Response is not an array. ' );
@@ -31,7 +31,7 @@ public function testGithubInfoForExistingProject()
31
31
*/
32
32
public function testGithubInfoForNonExistingProject ()
33
33
{
34
- $ githubProject = new GithubProjectGuzzle ('php-vcr/random_stuff ' );
34
+ $ githubProject = new GithubProject ('php-vcr/random_stuff ' );
35
35
$ info = $ githubProject ->getInfo ();
36
36
37
37
$ this ->assertNull ($ info , 'Response is not null. ' );
You can’t perform that action at this time.
0 commit comments