public function testCanNotGetUndefinedProperty() { $collection = new CAttributeCollection(array(), true); $this->assertFalse($collection->canGetProperty('Property')); $this->setExpectedException('CException'); $value = $collection->Property; }