Skip to content

Commit 98ed6f5

Browse files
committed
Fix failures due to path in heredoc
1 parent 5a49706 commit 98ed6f5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/system/Commands/Utilities/NamespacesTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public function testNamespacesCommandCodeIgniterOnly()
5454
| Tests\Support | ROOTPATH/tests/_support | Yes |
5555
+---------------+-------------------------+--------+
5656
EOL;
57+
$expected = str_replace('ROOTPATH/', 'ROOTPATH' . DIRECTORY_SEPARATOR, $expected);
58+
$expected = str_replace('APPPATH/', 'APPPATH' . DIRECTORY_SEPARATOR, $expected);
59+
$expected = str_replace('tests/_support', 'tests' . DIRECTORY_SEPARATOR . '_support', $expected);
5760

5861
$this->assertStringContainsString($expected, $this->getBuffer());
5962
}
@@ -63,15 +66,15 @@ public function testNamespacesCommandAllNamespaces()
6366
command('namespaces');
6467

6568
$this->assertStringContainsString(
66-
'|CodeIgniter|ROOTPATH/system|Yes|',
69+
'|CodeIgniter|ROOTPATH' . DIRECTORY_SEPARATOR . 'system|Yes|',
6770
str_replace(' ', '', $this->getBuffer())
6871
);
6972
$this->assertStringContainsString(
70-
'|App|ROOTPATH/app|Yes|',
73+
'|App|ROOTPATH' . DIRECTORY_SEPARATOR . 'app|Yes|',
7174
str_replace(' ', '', $this->getBuffer())
7275
);
7376
$this->assertStringContainsString(
74-
'|Config|APPPATH/Config|Yes|',
77+
'|Config|APPPATH' . DIRECTORY_SEPARATOR . 'Config|Yes|',
7578
str_replace(' ', '', $this->getBuffer())
7679
);
7780
}

0 commit comments

Comments
 (0)