| @@ 19-31 (lines=13) @@ | ||
| 16 | ||
| 17 | private $urlsToTest; |
|
| 18 | ||
| 19 | protected function setUp():void |
|
| 20 | { |
|
| 21 | parent::setUp(); |
|
| 22 | ||
| 23 | $this->safeUrls = new SafeUrls(); |
|
| 24 | $this->urlsToTest = [ |
|
| 25 | 'https://testsafebrowsing.appspot.com/s/phishing.html', |
|
| 26 | 'https://testsafebrowsing.appspot.com/s/malware.html', |
|
| 27 | 'http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/MALWARE/URL/', |
|
| 28 | 'http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/', |
|
| 29 | 'http://malware.testing.google.test/testing/malware/', |
|
| 30 | ]; |
|
| 31 | } |
|
| 32 | ||
| 33 | public function testStaticCallingMethod() |
|
| 34 | { |
|
| @@ 16-28 (lines=13) @@ | ||
| 13 | ||
| 14 | private $urlsToTest; |
|
| 15 | ||
| 16 | protected function setUp():void |
|
| 17 | { |
|
| 18 | parent::setUp(); |
|
| 19 | ||
| 20 | $this->safeUrls = new SafeUrls(); |
|
| 21 | $this->urlsToTest = [ |
|
| 22 | 'https://testsafebrowsing.appspot.com/s/phishing.html', |
|
| 23 | 'https://testsafebrowsing.appspot.com/s/malware.html', |
|
| 24 | 'http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/MALWARE/URL/', |
|
| 25 | 'http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/', |
|
| 26 | 'http://malware.testing.google.test/testing/malware/', |
|
| 27 | ]; |
|
| 28 | } |
|
| 29 | ||
| 30 | public function testAddUrls() |
|
| 31 | { |
|