Completed
Push — master ( 3656be...0c0759 )
by Mike
03:02
created
tests/Clients/SugarAPITest.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,15 +57,15 @@
 block discarded – undo
57 57
             'client_id' => 'sugar',
58 58
             'client_secret' => '',
59 59
             'platform' => 'api'
60
-        ),$this->SugarAPI->getCredentials());
60
+        ), $this->SugarAPI->getCredentials());
61 61
         $this->SugarAPI->setCredentials(array('password' => 'asdf'));
62
-        $this->assertEquals($this->credentials,$this->SugarAPI->getCredentials());
62
+        $this->assertEquals($this->credentials, $this->SugarAPI->getCredentials());
63 63
         $this->SugarAPI->setCredentials(array());
64
-        $this->assertEquals($this->credentials,$this->SugarAPI->getCredentials());
64
+        $this->assertEquals($this->credentials, $this->SugarAPI->getCredentials());
65 65
         $this->SugarAPI->setCredentials($this->credentials);
66
-        $this->assertEquals($this->credentials,$this->SugarAPI->getCredentials());
67
-        $this->SugarAPI->setCredentials(array('foo' => 'bar' ));
68
-        $this->assertEquals($this->credentials,$this->SugarAPI->getCredentials());
66
+        $this->assertEquals($this->credentials, $this->SugarAPI->getCredentials());
67
+        $this->SugarAPI->setCredentials(array('foo' => 'bar'));
68
+        $this->assertEquals($this->credentials, $this->SugarAPI->getCredentials());
69 69
     }
70 70
 
71 71
 }
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,12 +13,10 @@  discard block
 block discarded – undo
13 13
 class SugarAPITest extends \PHPUnit_Framework_TestCase {
14 14
 
15 15
 
16
-    public static function setUpBeforeClass()
17
-    {
16
+    public static function setUpBeforeClass(){
18 17
     }
19 18
 
20
-    public static function tearDownAfterClass()
21
-    {
19
+    public static function tearDownAfterClass(){
22 20
     }
23 21
 
24 22
     protected $SugarAPI;
@@ -31,14 +29,12 @@  discard block
 block discarded – undo
31 29
     );
32 30
 
33 31
 
34
-    public function setUp()
35
-    {
32
+    public function setUp(){
36 33
         $this->SugarAPI = new SugarAPI();
37 34
         parent::setUp();
38 35
     }
39 36
 
40
-    public function tearDown()
41
-    {
37
+    public function tearDown(){
42 38
         unset($this->SugarAPI);
43 39
         parent::tearDown();
44 40
     }
@@ -48,8 +44,7 @@  discard block
 block discarded – undo
48 44
      * @covers ::setCredentials
49 45
      * @group sugarapi
50 46
      */
51
-    public function testSetCredentials()
52
-    {
47
+    public function testSetCredentials(){
53 48
         $this->SugarAPI->setCredentials(array('username' => 'admin'));
54 49
         $this->assertEquals(array(
55 50
             'username' => 'admin',
Please login to merge, or discard this patch.
tests/EntryPoint/AbstractEntryPointTest.php 3 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -50,16 +50,16 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function testConstructor(){
52 52
         $Stub = new EntryPointStub($this->url);
53
-        $this->assertEquals('',$Stub->getUrl());
54
-        $this->assertEquals(array(),$Stub->getOptions());
53
+        $this->assertEquals('', $Stub->getUrl());
54
+        $this->assertEquals(array(), $Stub->getOptions());
55 55
         $this->assertEmpty($Stub->getData());
56 56
         $this->assertEmpty($Stub->getRequest());
57 57
         $this->assertEmpty($Stub->getResponse());
58 58
 
59 59
         unset($Stub);
60
-        $Stub = new EntryPointStub($this->url,$this->options);
61
-        $this->assertEquals($this->url.'foo',$Stub->getUrl());
62
-        $this->assertEquals($this->options,$Stub->getOptions());
60
+        $Stub = new EntryPointStub($this->url, $this->options);
61
+        $this->assertEquals($this->url.'foo', $Stub->getUrl());
62
+        $this->assertEquals($this->options, $Stub->getOptions());
63 63
         $this->assertEmpty($Stub->getData());
64 64
         $this->assertEmpty($Stub->getRequest());
65 65
         $this->assertEmpty($Stub->getResponse());
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function testSetOptions($Stub){
81 81
         $Stub->setOptions(array());
82
-        $this->assertEquals($this->url.'$test',$Stub->getUrl());
83
-        $this->assertEquals(array(),$Stub->getOptions());
82
+        $this->assertEquals($this->url.'$test', $Stub->getUrl());
83
+        $this->assertEquals(array(), $Stub->getOptions());
84 84
         $Stub->setOptions($this->options);
85
-        $this->assertEquals($this->url.'foo',$Stub->getUrl());
86
-        $this->assertEquals($this->options,$Stub->getOptions());
85
+        $this->assertEquals($this->url.'foo', $Stub->getUrl());
86
+        $this->assertEquals($this->options, $Stub->getOptions());
87 87
         
88 88
         return $Stub;
89 89
     }
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function testSetData($Stub){
100 100
         $Stub->setData(array());
101
-        $this->assertEquals(array(),$Stub->getData());
101
+        $this->assertEquals(array(), $Stub->getData());
102 102
         $Stub->setData('string');
103
-        $this->assertEquals('string',$Stub->getData());
103
+        $this->assertEquals('string', $Stub->getData());
104 104
         $class = new \stdClass();
105 105
         $class->foo = 'bar';
106 106
         $Stub->setData($class);
107
-        $this->assertEquals($class,$Stub->getData());
107
+        $this->assertEquals($class, $Stub->getData());
108 108
         unset($class);
109 109
         $Stub->setData($this->data);
110 110
         return $Stub;
@@ -126,22 +126,22 @@  discard block
 block discarded – undo
126 126
         $DELETE = new DELETE();
127 127
         $GETFile = new GETFile();
128 128
         $Stub->setRequest($POST);
129
-        $this->assertEquals($POST,$Stub->getRequest());
129
+        $this->assertEquals($POST, $Stub->getRequest());
130 130
         unset($POST);
131 131
         $Stub->setRequest($POSTFile);
132
-        $this->assertEquals($POSTFile,$Stub->getRequest());
132
+        $this->assertEquals($POSTFile, $Stub->getRequest());
133 133
         unset($POSTFile);
134 134
         $Stub->setRequest($PUT);
135
-        $this->assertEquals($PUT,$Stub->getRequest());
135
+        $this->assertEquals($PUT, $Stub->getRequest());
136 136
         unset($PUT);
137 137
         $Stub->setRequest($DELETE);
138
-        $this->assertEquals($DELETE,$Stub->getRequest());
138
+        $this->assertEquals($DELETE, $Stub->getRequest());
139 139
         unset($DELETE);
140 140
         $Stub->setRequest($GETFile);
141
-        $this->assertEquals($GETFile,$Stub->getRequest());
141
+        $this->assertEquals($GETFile, $Stub->getRequest());
142 142
         unset($GETFile);
143 143
         $Stub->setRequest($GET);
144
-        $this->assertEquals($GET,$Stub->getRequest());
144
+        $this->assertEquals($GET, $Stub->getRequest());
145 145
         return $Stub;
146 146
     }
147 147
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function testSetAuth($Stub){
157 157
         $Stub->setAuth('1234');
158
-        $this->assertEquals(true,$Stub->authRequired());
158
+        $this->assertEquals(true, $Stub->authRequired());
159 159
         return $Stub;
160 160
     }
161 161
 
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
         $this->assertEquals(array(
182 182
                                 'foo' => 'bar',
183 183
                                 'bar' => 'foo'
184
-        ),$Stub->getData());
185
-        $this->assertEquals($this->url.'foo?foo=bar&bar=foo',$Stub->getRequest()->getUrl());
186
-        $this->assertEquals(array('OAuth-Token: 1234'),$Stub->getRequest()->getHeaders());
184
+        ), $Stub->getData());
185
+        $this->assertEquals($this->url.'foo?foo=bar&bar=foo', $Stub->getRequest()->getUrl());
186
+        $this->assertEquals(array('OAuth-Token: 1234'), $Stub->getRequest()->getHeaders());
187 187
     }
188 188
 
189 189
     /**
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,12 +18,10 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class AbstractEntryPointTest extends \PHPUnit_Framework_TestCase {
20 20
 
21
-    public static function setUpBeforeClass()
22
-    {
21
+    public static function setUpBeforeClass(){
23 22
     }
24 23
 
25
-    public static function tearDownAfterClass()
26
-    {
24
+    public static function tearDownAfterClass(){
27 25
     }
28 26
 
29 27
     protected $Stub;
@@ -33,13 +31,11 @@  discard block
 block discarded – undo
33 31
         'foo' => 'bar'
34 32
     );
35 33
 
36
-    public function setUp()
37
-    {
34
+    public function setUp(){
38 35
         parent::setUp();
39 36
     }
40 37
 
41
-    public function tearDown()
42
-    {
38
+    public function tearDown(){
43 39
         parent::tearDown();
44 40
     }
45 41
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      */
156 156
     public function testSetAuth($Stub){
157 157
         $Stub->setAuth('1234');
158
-        $this->assertEquals(true,$Stub->authRequired());
158
+        $this->assertEquals(TRUE,$Stub->authRequired());
159 159
         return $Stub;
160 160
     }
161 161
 
Please login to merge, or discard this patch.