File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
class SDKTest extends \PHPUnit_Framework_TestCase
8
8
{
9
- public function testContainsDynamicProperties ()
9
+ protected $ sdk ;
10
+
11
+ public function setUp ()
10
12
{
11
- $ sdk = new SDK (['api_key ' => 'D74KLJ345UH9SHDF1 ' , 'summary_length ' => 5 ]);
13
+ $ this ->sdk = new SDK (['api_key ' => 'D74KLJ345UH9SHDF1 ' , 'summary_length ' => 5 ]);
14
+ }
12
15
13
- $ this ->assertObjectHasAttribute ('api_key ' , $ sdk );
14
- $ this ->assertAttributeEquals ('D74KLJ345UH9SHDF1 ' , 'api_key ' , $ sdk );
16
+ public function testContainsDynamicProperties ()
17
+ {
18
+ $ this ->assertObjectHasAttribute ('api_key ' , $ this ->sdk );
19
+ $ this ->assertAttributeEquals ('D74KLJ345UH9SHDF1 ' , 'api_key ' , $ this ->sdk );
15
20
16
- $ this ->assertObjectHasAttribute ('summary_length ' , $ sdk );
17
- $ this ->assertAttributeEquals (5 , 'summary_length ' , $ sdk );
21
+ $ this ->assertObjectHasAttribute ('summary_length ' , $ this -> sdk );
22
+ $ this ->assertAttributeEquals (5 , 'summary_length ' , $ this -> sdk );
18
23
}
19
24
}
You can’t perform that action at this time.
0 commit comments