|
|
@@ -338,6 +338,20 @@ class ShellTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * testInfo method with array
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testInfoArray()
|
|
|
+ {
|
|
|
+ $this->io->expects($this->once())
|
|
|
+ ->method('out')
|
|
|
+ ->with(['<info>Just</info>', '<info>a</info>', '<info>test</info>'], 1);
|
|
|
+
|
|
|
+ $this->Shell->info(['Just', 'a', 'test']);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* testWarn method
|
|
|
*
|
|
|
* @return void
|
|
|
@@ -352,6 +366,20 @@ class ShellTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * testWarn method with array
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testWarnArray()
|
|
|
+ {
|
|
|
+ $this->io->expects($this->once())
|
|
|
+ ->method('err')
|
|
|
+ ->with(['<warning>Just</warning>', '<warning>a</warning>', '<warning>test</warning>'], 1);
|
|
|
+
|
|
|
+ $this->Shell->warn(['Just', 'a', 'test']);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* testSuccess method
|
|
|
*
|
|
|
* @return void
|
|
|
@@ -366,6 +394,20 @@ class ShellTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * testSuccess method with array
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testSuccessArray()
|
|
|
+ {
|
|
|
+ $this->io->expects($this->once())
|
|
|
+ ->method('out')
|
|
|
+ ->with(['<success>Just</success>', '<success>a</success>', '<success>test</success>'], 1);
|
|
|
+
|
|
|
+ $this->Shell->success(['Just', 'a', 'test']);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* testNl
|
|
|
*
|
|
|
* @return void
|