Skip to content

Commit

Permalink
Merge pull request #2 from JayBizzle/analysis-8wg398
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
JayBizzle committed Aug 14, 2015
2 parents 675f51b + 3960b78 commit f324c36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
20 changes: 9 additions & 11 deletions tests/DeployBotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace DeployBot\Test;

use Jaybizzle\DeployBot;
use GuzzleHttp\Client;
use GuzzleHttp\Subscriber\Mock;
use GuzzleHttp\Message\Response;
use Jaybizzle\DeployBot;

class DeployBotTest extends \PHPUnit_Framework_TestCase
{
Expand All @@ -31,7 +30,7 @@ public function testParseApiEndpoint()
$expected = 'https://foobar.deploybot.com/api/v1/';

$db = $this->getMockBuilder('Jaybizzle\DeployBot')
->setConstructorArgs(array('foo_api_key', 'bar_account_name'))
->setConstructorArgs(['foo_api_key', 'bar_account_name'])
->disableOriginalConstructor()
->setMethods(null)
->getMock();
Expand Down Expand Up @@ -59,7 +58,7 @@ public function testGetUsersResponse()

public function testAddingQueryParams()
{
$args = array(2);
$args = [2];

$db = new DeployBot('foo_api_key', 'bar_account_name', new \stdClass());

Expand All @@ -71,15 +70,14 @@ public function testAddingQueryParams()

public function providerParamNames()
{
return array(
array('fooBar', 'foo_bar'),
array('FooBar', 'foo_bar'),
array('FOOBAR', 'f_o_o_b_a_r'),
);
return [
['fooBar', 'foo_bar'],
['FooBar', 'foo_bar'],
['FOOBAR', 'f_o_o_b_a_r'],
];
}

public function tearDown()
{

}
}
}
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

error_reporting(E_ALL | E_STRICT);
require dirname(__DIR__) . '/vendor/autoload.php';
require dirname(__DIR__).'/vendor/autoload.php';

0 comments on commit f324c36

Please sign in to comment.