hard debug is hard
This commit is contained in:
parent
18e1058aa5
commit
ba5bb1d298
|
@ -64,6 +64,7 @@ class m_actionTest extends AlterncTest {
|
||||||
*/
|
*/
|
||||||
public function testDo_action() {
|
public function testDo_action() {
|
||||||
global $L_INOTIFY_DO_ACTION;
|
global $L_INOTIFY_DO_ACTION;
|
||||||
|
file_put_contents("/tmp/log_fser", "hello world from fser");
|
||||||
$result = $this->object->do_action();
|
$result = $this->object->do_action();
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
$this->assertFileExists($L_INOTIFY_DO_ACTION);
|
$this->assertFileExists($L_INOTIFY_DO_ACTION);
|
||||||
|
@ -176,6 +177,7 @@ class m_actionTest extends AlterncTest {
|
||||||
public function testGet_action() {
|
public function testGet_action() {
|
||||||
$result = $this->object->get_action();
|
$result = $this->object->get_action();
|
||||||
$this->assertTrue(is_array($result));
|
$this->assertTrue(is_array($result));
|
||||||
|
$this->expectOutputString(print_r($result, TRUE));
|
||||||
$this->assertCount(1, $result);
|
$this->assertCount(1, $result);
|
||||||
return current($result);
|
return current($result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue