コード例 #1
0
ファイル: PostBodyTest.php プロジェクト: GerDner/luck-docker
 public function testDetachesWhenBodyIsPresent()
 {
     $b = new PostBody();
     $b->setField('foo', 'bar');
     $b->getContents();
     $b->detach();
 }
コード例 #2
0
ファイル: PostBodyTest.php プロジェクト: anatalsceo/en-classe
 public function testDetachesAndCloses()
 {
     $b = new PostBody();
     $b->setField('foo', 'bar');
     $b->detach();
     $this->assertTrue($b->close());
     $this->assertEquals('', $b->read(10));
 }