public function testRespondsTo() { $query = new Relationship(array('type' => 'belongsTo', 'fieldName' => 'bob', 'to' => $this->_image)); $this->assertTrue($query->respondsTo('foobarbaz')); $this->assertFalse($query->respondsTo(0)); }