public function testMagicCallThrowsException() { $this->setExpectedException('\\Phur\\Composite\\Exception', 'stdClass::undefined() is not callable'); $this->collection[] = (object) array('prop' => 'value1'); $this->collection->undefined(); }