示例#1
0
文件: HttpTest.php 项目: lortnus/zf1
 public function testInsertWithFalseParent()
 {
     $this->_response->append('some', "some content\n");
     $this->_response->append('more', "more content\n");
     $this->_response->insert('foobar', "foobar content\n", 'baz', true);
     $content = $this->_response->getBody(true);
     $this->assertTrue(is_array($content));
     $expected = array('some' => "some content\n", 'more' => "more content\n", 'foobar' => "foobar content\n");
     $this->assertSame($expected, $content);
 }