1 | <?php |
||
6 | class MetadataTest extends PHPUnit_Framework_TestCase |
||
7 | { |
||
8 | protected $bundle = null; |
||
9 | protected $media = 'http://media.clarify.io/audio/samples/harvard-sentences-1.wav'; |
||
10 | |||
11 | public function setUp() |
||
21 | |||
22 | /** |
||
23 | * @expectedException \Clarify\Exceptions\InvalidJSONException |
||
24 | */ |
||
25 | public function testUpdateWithJSONException() |
||
30 | |||
31 | public function testUpdate() |
||
45 | } |
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: