This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
kurs:entwickeln_mit_phpunit [2012/01/12 10:23] mh |
kurs:entwickeln_mit_phpunit [2012/01/12 11:07] mh |
||
---|---|---|---|
Line 31: | Line 31: | ||
function store() {} | function store() {} | ||
| | ||
+ | function __set($u, $a) { | ||
+ | die("ERROR: you tried to set $u with $a"); | ||
+ | } | ||
+ | | ||
+ | function __get($u) { | ||
+ | die("ERROR: you tried to get $u"); | ||
+ | } | ||
+ | |||
+ | function __call($u, $a) { | ||
+ | die("ERROR: you tried to call $u with $a"); | ||
+ | } | ||
+ | |||
} | } | ||
</code> | </code> |