Skip to content

Commit ccf7dfc

Browse files
committed
tests
1 parent dfcb401 commit ccf7dfc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/JobParseTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ public function setUp()
1818
$this->job_parser = new \Jenner\Crontab\Parser\JobParse();
1919
}
2020

21-
public function parseProvider()
22-
{
23-
return array(
24-
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log'),
25-
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log'),
26-
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log'),
27-
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log')
28-
);
29-
}
30-
3121
/**
3222
* @dataProvider parseProvider
3323
*/
@@ -38,4 +28,14 @@ public function testParse($raw, $time, $command)
3828
$this->assertEquals($this->job_parser->command(), $command);
3929
}
4030

31+
public function parseProvider()
32+
{
33+
return array(
34+
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log'),
35+
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log'),
36+
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log'),
37+
array('* * * * * ls -al > test.log', '* * * * *', 'ls -al > test.log')
38+
);
39+
}
40+
4141
}

0 commit comments

Comments
 (0)