@@ -44,14 +44,16 @@ public function testNamespacesCommandCodeIgniterOnly()
4444 {
4545 command ('namespaces -c ' );
4646
47- $ expected = <<<'EOL'
47+ $ ds = DIRECTORY_SEPARATOR ;
48+
49+ $ expected = <<<EOL
4850 +---------------+-------------------------+--------+
4951 | Namespace | Path | Found? |
5052 +---------------+-------------------------+--------+
51- | CodeIgniter | ROOTPATH/ system | Yes |
52- | App | ROOTPATH/ app | Yes |
53- | Config | APPPATH/ Config | Yes |
54- | Tests\Support | ROOTPATH/ tests/ _support | Yes |
53+ | CodeIgniter | ROOTPATH { $ ds } system | Yes |
54+ | App | ROOTPATH { $ ds } app | Yes |
55+ | Config | APPPATH { $ ds } Config | Yes |
56+ | Tests\\ Support | ROOTPATH { $ ds } tests { $ ds } _support | Yes |
5557 +---------------+-------------------------+--------+
5658 EOL ;
5759
@@ -63,15 +65,15 @@ public function testNamespacesCommandAllNamespaces()
6365 command ('namespaces ' );
6466
6567 $ this ->assertStringContainsString (
66- '|CodeIgniter|ROOTPATH/ system|Yes| ' ,
68+ '|CodeIgniter|ROOTPATH ' . DIRECTORY_SEPARATOR . ' system|Yes| ' ,
6769 str_replace (' ' , '' , $ this ->getBuffer ())
6870 );
6971 $ this ->assertStringContainsString (
70- '|App|ROOTPATH/ app|Yes| ' ,
72+ '|App|ROOTPATH ' . DIRECTORY_SEPARATOR . ' app|Yes| ' ,
7173 str_replace (' ' , '' , $ this ->getBuffer ())
7274 );
7375 $ this ->assertStringContainsString (
74- '|Config|APPPATH/ Config|Yes| ' ,
76+ '|Config|APPPATH ' . DIRECTORY_SEPARATOR . ' Config|Yes| ' ,
7577 str_replace (' ' , '' , $ this ->getBuffer ())
7678 );
7779 }
0 commit comments