ggramlich / phpslim

Php Port of Robert C. Martin's Slim
http://ggramlich.github.com/phpslim
21 stars 6 forks source link

Execute __call method on fixture if real method does not exist and __call exists #3

Closed ohoareau closed 12 years ago

ohoareau commented 12 years ago

class MyFixture { public function __call($name, $args) { return $name . ' called with ' . json_encode($args); } }

// ------------

|^MyFixture| |property|action?| |value1|setProperty called with ['value1']|