Ensure tests don't change global state
This commit is contained in:
parent
73d0b87155
commit
abc29de25f
|
@ -1,6 +1,17 @@
|
|||
<?php
|
||||
|
||||
class IFramePageTest extends SapphireTest {
|
||||
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
Config::nest();
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
Config::unnest();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function testGetClass() {
|
||||
$iframe = new IFramePage();
|
||||
$iframe->AutoHeight = 1;
|
||||
|
|
Loading…
Reference in New Issue