Skip to content

Commit 93a0426

Browse files
committed
Test both require & include
1 parent 7983ede commit 93a0426

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/tests/TestRemoveIncludeParentheses.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class TestRemoveIncludeParentheses extends PHPUnit_Framework_TestCase {
88
private $code = <<<CODE
99
<?php
1010
include ('a.php');
11+
require ('a.php');
1112
?>
1213
CODE;
1314

@@ -20,6 +21,7 @@ public function testEnabled() {
2021
);
2122

2223
$this->assertContains( "include 'a.php';", $output );
24+
$this->assertContains( "require 'a.php';", $output );
2325
}
2426

2527
public function testDisabled() {
@@ -31,6 +33,7 @@ public function testDisabled() {
3133
);
3234

3335
$this->assertContains( "include ('a.php');", $output );
36+
$this->assertContains( "require ('a.php');", $output );
3437
}
3538

3639
}

0 commit comments

Comments
 (0)