Skip to content

Commit

Permalink
Refrain from using deprecated annotation key/value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 5, 2020
1 parent ac2c43b commit f6e2b03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/php/unittest/web/tests/WebTestCaseTest.class.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

use io\streams\MemoryInputStream;
use peer\http\HttpConnection;
use peer\http\HttpResponse;
use peer\http\HttpConstants;
use peer\http\HttpResponse;
use unittest\TestCase;

abstract class WebTestCaseTest extends \unittest\TestCase {
abstract class WebTestCaseTest extends TestCase {
protected $fixture= null;

/** @return void */
public function setUp() {
$this->fixture= newinstance('#[@webtest(url= "http://localhost/")] unittest.web.WebTestCase', [$this->name], [
$this->fixture= newinstance('#[@webtest(["url" => "http://localhost/"])] unittest.web.WebTestCase', [$this->name], [
'response' => null,
'doRequest' => function($method, $params) {
return $this->response;
Expand Down

0 comments on commit f6e2b03

Please sign in to comment.