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(); }
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); }