function testUsePre() { SqlFormatter::$use_pre = false; $actual = SqlFormatter::highlight("test"); $expected = '<span style="color: #333;">test</span>'; $this->assertEquals($actual, $expected); SqlFormatter::$use_pre = true; $actual = SqlFormatter::highlight("test"); $expected = '<pre style="color: black; background-color: white;"><span style="color: #333;">test</span></pre>'; $this->assertEquals($actual, $expected); }