public function testChtt() { $this->assertNull($this->chart->computeChtt()); $this->chart->setTitle('foobar'); $this->assertEquals($this->chart->computeChtt(), 'foobar'); $this->chart->setTitle("foo\nbar"); $this->assertEquals($this->chart->computeChtt(), 'foo|bar'); }