Skip to content

Commit d00f531

Browse files
committed
fix tests
1 parent 60ac0c3 commit d00f531

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/TestingBotTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
1111
class TestingBotTest extends PHPUnit_Framework_TestCase {
1212
private $api;
1313

14-
public function setup() {
14+
protected function setUp(): void {
1515
$key = getenv("TB_KEY");
1616
$secret = getenv("TB_SECRET");
1717

@@ -72,12 +72,12 @@ public function testCalculateAuthentication() {
7272

7373
public function testUploadLocalFileToStorage() {
7474
$response = $this->api->uploadLocalFileToStorage(realpath(dirname(__FILE__) . '/resources/test.apk'));
75-
$this->assertContains('tb://', $response['app_url']);
75+
$this->assertStringContainsStringIgnoringCase('tb://', $response['app_url']);
7676
}
7777

7878
public function testUploadRemoteFileToStorage() {
7979
$response = $this->api->uploadRemoteFileToStorage('https://testingbot.com/appium/sample.apk');
80-
$this->assertContains('tb://', $response['app_url']);
80+
$this->assertStringContainsStringIgnoringCase('tb://', $response['app_url']);
8181
}
8282

8383
public function testGetStoredFiles() {

0 commit comments

Comments
 (0)