public function testResourceThatDoesntExist() { $this->setExpectedException('Exception', "Resource 'DoesNotExist' not found in stack 'test-stack1'"); $this->stack->getResource('DoesNotExist'); }