File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*
3
+ * This file is part of Aplus.
4
+ *
5
+ * (c) Natan Felles <natanfelles@gmail.com>
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ namespace Tests \Commands ;
11
+
12
+ use Aplus \Commands \NewApp ;
13
+ use Framework \CLI \Streams \Stdout ;
14
+
15
+ /**
16
+ * Class NewAppTest.
17
+ */
18
+ final class NewAppTest extends TestCase
19
+ {
20
+ protected string $ command = NewApp::class;
21
+
22
+ public function testNewApp () : void
23
+ {
24
+ $ dir = \sys_get_temp_dir () . '/aplus-app ' ;
25
+ if (\is_dir ($ dir )) {
26
+ \rmdir ($ dir );
27
+ }
28
+ Stdout::init ();
29
+ $ this ->console ->exec ('new-app ' . $ dir );
30
+ self ::assertStringContainsString (
31
+ 'App Project structure created at " ' . $ dir . '" ' ,
32
+ Stdout::getContents ()
33
+ );
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments