public function testErrorForUnknownBackgroundCode() { $this->setExpectedException('\\Exception', 'Invalid background colour.'); Colours::getBackgroundCode('notacolour'); }