public function testSetOutputter() { // This test assumes that the format defaults to JSON. $formatter = $this->runner->getOutputter()->getFormatter(); $this->assertTrue(strpos(get_class($formatter), 'Pretty') !== false); // This test assumes that the format defaults to Bash. $this->runner->setOutputter('bash', 'php://stdout'); $formatter = $this->runner->getOutputter()->getFormatter(); $this->assertTrue(strpos(get_class($formatter), 'Bash') !== false); $this->runner->setOutputter('json', 'php://stdout'); $formatter = $this->runner->getOutputter()->getFormatter(); $this->assertTrue(strpos(get_class($formatter), 'JSON') !== false); }