public function testCallMagic() { //redirect from methods to both query objects $from = new Erfurt_Sparql_Query2_GraphClause(new Erfurt_Sparql_Query2_IriRef("http://abc")); $this->_instances->addFrom($from); $this->assertContains($from, $this->_instances->getFroms()); //redirected to resource query $this->assertContains($from, $this->_instances->getQuery()->getFroms()); //check undefined exception try { $r = $this->_instances->undef(); $this->fail("no exception when calling undefined method on instances object. see __call"); } catch (Exception $exc) { $this->assertTrue(true); //increase assertion count :) } }