We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2be9e28 commit f212d3fCopy full SHA for f212d3f
tests/PHPCR/Tests/Util/Console/Command/NodeDumpCommandTest.php
@@ -70,14 +70,13 @@ public function testCommandIdentifier()
70
$this->executeCommand('phpcr:node:dump', array('identifier' => $uuid));
71
}
72
73
+ /**
74
+ * @expectedException \Exception
75
+ */
76
public function testInvalidRefFormat()
77
{
- try {
- $this->executeCommand('phpcr:node:dump', array('--ref-format' => 'xy'));
- $this->fail('invalid ref-format did not produce exception');
78
- } catch (\Exception $e) {
79
- // success
80
- }
+ $this->executeCommand('phpcr:node:dump', array('--ref-format' => 'xy'));
+ $this->fail('invalid ref-format did not produce exception');
81
82
83
public function testNotFound()
0 commit comments