setExpectedException('LQDN\Exception\CommandNotAnObjectException'); $this->container['command_handler']->handle("Not a command object"); } public function testCommandNotHandledException() { $this->setExpectedException('LQDN\Exception\CommandNotHandledException'); $this->container['command_handler']->handle(new Object()); } } ?>