Hello, world!]]> '; /** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); } /** * Cleans up the environment after running a test. */ protected function tearDown() { parent::tearDown(); } /** * Tests ViewSpec->__construct() */ public function test__construct() { $doc = simplexml_load_string($this->GadgetXML, 'SimpleXMLElement', LIBXML_NOCDATA); $content = $doc->Content[0]; $attributes = $content->attributes(); $view = isset($attributes['view']) ? trim($attributes['view']) : DEFAULT_VIEW; $attributes['type'] = 'url'; $this->setExpectedException('SpecParserException'); $this->ViewSpec = new ViewSpec($view, $content); } }