@@ 53-63 (lines=11) @@ | ||
50 | /** |
|
51 | * @expectedException \Symfony\Component\Console\Exception\RuntimeException |
|
52 | */ |
|
53 | public function testExportWithWrongArguments() |
|
54 | { |
|
55 | $application = new Application(); |
|
56 | $application->add(new ExportCommand()); |
|
57 | ||
58 | $command = $application->find('lang:export-to-yaml'); |
|
59 | $commandTester = new CommandTester($command); |
|
60 | $commandTester->execute(array( |
|
61 | 'command' => $command->getName(), |
|
62 | )); |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @expectedException \EllipseSynergie\LocaleToYaml\Exceptions\FileNotFoundException |
|
@@ 68-79 (lines=12) @@ | ||
65 | /** |
|
66 | * @expectedException \EllipseSynergie\LocaleToYaml\Exceptions\FileNotFoundException |
|
67 | */ |
|
68 | public function testExportWithInvalidFilename() |
|
69 | { |
|
70 | $application = new Application(); |
|
71 | $application->add(new ExportCommand()); |
|
72 | ||
73 | $command = $application->find('lang:export-to-yaml'); |
|
74 | $commandTester = new CommandTester($command); |
|
75 | $commandTester->execute(array( |
|
76 | 'command' => $command->getName(), |
|
77 | 'in' => 'tests/foo.php' |
|
78 | )); |
|
79 | } |
|
80 | } |
|
81 |
@@ 61-71 (lines=11) @@ | ||
58 | /** |
|
59 | * @expectedException \Symfony\Component\Console\Exception\RuntimeException |
|
60 | */ |
|
61 | public function testImportWithWrongArguments() |
|
62 | { |
|
63 | $application = new Application(); |
|
64 | $application->add(new ImportCommand()); |
|
65 | ||
66 | $command = $application->find('lang:import-from-yaml'); |
|
67 | $commandTester = new CommandTester($command); |
|
68 | $commandTester->execute(array( |
|
69 | 'command' => $command->getName(), |
|
70 | )); |
|
71 | } |
|
72 | ||
73 | /** |
|
74 | * @expectedException \EllipseSynergie\LocaleToYaml\Exceptions\FileNotFoundException |
|
@@ 76-88 (lines=13) @@ | ||
73 | /** |
|
74 | * @expectedException \EllipseSynergie\LocaleToYaml\Exceptions\FileNotFoundException |
|
75 | */ |
|
76 | public function testImportWithInvalidFilename() |
|
77 | { |
|
78 | $application = new Application(); |
|
79 | $application->add(new ImportCommand()); |
|
80 | ||
81 | $command = $application->find('lang:import-from-yaml'); |
|
82 | $commandTester = new CommandTester($command); |
|
83 | $commandTester->execute(array( |
|
84 | 'command' => $command->getName(), |
|
85 | 'in' => 'tests/foo.yml', |
|
86 | 'out' => 'tests/foo.php' |
|
87 | )); |
|
88 | } |
|
89 | } |
|
90 |