Skip to content

Commit f212d3f

Browse files
ElectricMaxxxdbu
authored andcommitted
fix test
1 parent 2be9e28 commit f212d3f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/PHPCR/Tests/Util/Console/Command/NodeDumpCommandTest.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,13 @@ public function testCommandIdentifier()
7070
$this->executeCommand('phpcr:node:dump', array('identifier' => $uuid));
7171
}
7272

73+
/**
74+
* @expectedException \Exception
75+
*/
7376
public function testInvalidRefFormat()
7477
{
75-
try {
76-
$this->executeCommand('phpcr:node:dump', array('--ref-format' => 'xy'));
77-
$this->fail('invalid ref-format did not produce exception');
78-
} catch (\Exception $e) {
79-
// success
80-
}
78+
$this->executeCommand('phpcr:node:dump', array('--ref-format' => 'xy'));
79+
$this->fail('invalid ref-format did not produce exception');
8180
}
8281

8382
public function testNotFound()

0 commit comments

Comments
 (0)