1 | <?php |
||
7 | class AbstractMailObjectTest extends PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | private $object; |
||
10 | |||
11 | protected function setUp() |
||
15 | |||
16 | public function testMagicMethods() |
||
32 | |||
33 | /** |
||
34 | * @expectedException \Da\Mailer\Exception\InvalidCallException |
||
35 | */ |
||
36 | public function testUnsetInvalidCallException() |
||
40 | |||
41 | /** |
||
42 | * @expectedException \Da\Mailer\Exception\InvalidCallException |
||
43 | */ |
||
44 | public function testGetInvalidCallException() |
||
48 | |||
49 | /** |
||
50 | * @expectedException \Da\Mailer\Exception\UnknownPropertyException |
||
51 | */ |
||
52 | public function testGetUnknownPropertyException() |
||
56 | |||
57 | /** |
||
58 | * @expectedException \Da\Mailer\Exception\InvalidCallException |
||
59 | */ |
||
60 | public function testSetInvalidCallException() |
||
64 | |||
65 | /** |
||
66 | * @expectedException \Da\Mailer\Exception\UnknownPropertyException |
||
67 | */ |
||
68 | public function testSetUnknownPropertyException() |
||
72 | |||
73 | public function testFromArrayMethod() |
||
81 | } |
||
82 | |||
112 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.