public function test_discard()
 {
     // Set up.
     $stack = new xhtml_container_stack();
     $stack->push('test1', '</somethingdistinctive>');
     $stack->discard();
     // Exercise SUT.
     $stack = null;
     // Verify outcome
     $this->assertDebuggingNotCalled();
 }
예제 #2
0
 public function test_discard()
 {
     // Set up.
     $stack = new xhtml_container_stack();
     $stack->push('test1', '</somethingdistinctive>');
     $stack->discard();
     // Exercise SUT.
     $this->start_capture();
     $stack = null;
     $errors = $this->end_capture();
     // Verify outcome
     $this->assertEquals('', $errors);
 }