/** * test correct line continuation markers on multi line headers. * * @access public * @return void */ function testMultiLineOutput() { FireCake::trace('myTrace'); $this->assertEqual($this->firecake->sentHeaders['X-Wf-1-Index'], 3); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-1']; $this->assertEqual(substr($header, -2), '|\\'); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-2']; $this->assertEqual(substr($header, -2), '|\\'); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-3']; $this->assertEqual(substr($header, -1), '|'); }
/** * test correct line continuation markers on multi line headers. * * @return void */ public function testMultiLineOutput() { FireCake::trace('myTrace'); $this->assertGreaterThan(1, $this->firecake->sentHeaders['X-Wf-1-Index']); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-1']; $this->assertEqual(substr($header, -2), '|\\'); $endIndex = $this->firecake->sentHeaders['X-Wf-1-Index']; $header = $this->firecake->sentHeaders['X-Wf-1-1-1-' . $endIndex]; $this->assertEqual(substr($header, -1), '|'); }
/** * test correct line continuation markers on multi line headers. * * @access public * @return void */ function testMultiLineOutput() { $skip = $this->skipIf(!PHP5, 'Output is not long enough with PHP4'); if ($skip) { return; } FireCake::trace('myTrace'); $this->assertEqual($this->firecake->sentHeaders['X-Wf-1-Index'], 3); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-1']; $this->assertEqual(substr($header, -2), '|\\'); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-2']; $this->assertEqual(substr($header, -2), '|\\'); $header = $this->firecake->sentHeaders['X-Wf-1-1-1-3']; $this->assertEqual(substr($header, -1), '|'); }