public function testGetTaskData() { $input = new \phalanx\base\Dictionary(array('foo' => 'bar')); $task = new TestTask($input); $task->Fire(); $data = $this->handler->T_GetTaskData($task); $expected = array('will_fire' => FALSE, 'fire' => TRUE, 'cleanup' => FALSE, 'out1' => 'foo', 'out2' => 'bar', 'out3' => 'moo', 'id' => NULL, 'input' => $input); $this->assertType('phalanx\\base\\Dictionary', $data); $this->assertEquals($expected, $data->ToArray()); $this->assertFalse($task->out2_never_true); }
public function Fire() { global $test; parent::Fire(); $test->pump->StopPump(); }