예제 #1
0
 public function testDelete()
 {
     $bxObject = m::mock('object');
     $bxObject->shouldReceive('delete')->once()->andReturn(true);
     TestSection::$bxObject = $bxObject;
     $section = new TestSection(1);
     $this->assertTrue($section->delete());
 }