| 1 | <?php |
||
| 8 | class ApiCallerTest extends \PHPUnit\Framework\TestCase |
||
| 9 | { |
||
| 10 | public function setUp() |
||
| 14 | /** |
||
| 15 | * @expectedException \Exception |
||
| 16 | */ |
||
| 17 | public function testCallApiWithANotValidApiKeyGenerateErrorAndThrwoException() |
||
| 21 | |||
| 22 | public function testIsLastCallEmpty() |
||
| 26 | |||
| 27 | public function testGetLastResponse() |
||
| 31 | } |
||
| 32 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: