assertSame('error', $this->_object->getType()); } public function testSetText() { $this->_object->setText('This is an error text'); $this->assertSame('This is an error text', $this->_object->getRawText()); $this->assertSame('This is an error text', $this->_object->getText()); $this->assertSame('This is an error text', $this->_object->getTextToDisplay()); } public function testCheckGoodParams() { $this->_object->setText('This is an error text'); $this->assertTrue($this->_object->checkParams()); } public function testGetDefaultHeight() { $this->assertEquals(40, $this->_object->getHeight()); } public function testGetDefaultWidth() { $this->assertEquals(400, $this->_object->getWidth()); } public function testCompleteGeneration() { $this->_object->setText('This is an error text'); $this->_object->draw(); $instructions = $this->loadInstructionsFile('Error_errortext_instructions'); $this->assertEquals($instructions, $this->_object->getInstructions()); } }