public function test_set_heading() { // Exercise SUT. $this->testpage->set_heading('a heading'); // Validated. $this->assertSame('a heading', $this->testpage->heading); }