| @@ 54-62 (lines=9) @@ | ||
| 51 | /** |
|
| 52 | * @test |
|
| 53 | */ |
|
| 54 | public function shouldRunPrependSriptIfGiven() |
|
| 55 | { |
|
| 56 | $this->controller->setPrependScript(__DIR__ . '/_files/prepend.php'); |
|
| 57 | ||
| 58 | $this->doRunLegacyScript(); |
|
| 59 | ||
| 60 | self::assertArrayHasKey('prepend_something', $_SERVER); |
|
| 61 | self::assertEquals('something', $_SERVER['prepend_something']); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @test |
|
| @@ 67-76 (lines=10) @@ | ||
| 64 | /** |
|
| 65 | * @test |
|
| 66 | */ |
|
| 67 | public function shouldRunAppendScriptIfGiven() |
|
| 68 | { |
|
| 69 | $this->controller->setAppendScript(__DIR__ . '/_files/append.php'); |
|
| 70 | ||
| 71 | $this->doRunLegacyScript(); |
|
| 72 | ||
| 73 | self::assertArrayHasKey('append_foo', $_SERVER); |
|
| 74 | self::assertEquals('foo', $_SERVER['append_foo']); |
|
| 75 | ||
| 76 | } |
|
| 77 | ||
| 78 | protected function setUp() |
|
| 79 | { |
|