/**
  * @expectedException \Governor\Framework\Test\GovernorAssertionError
  */
 public function testMatchWithUnexpectedNullValue()
 {
     \Phake::when($this->commandBus)->getDispatchedCommands(\Phake::anyParameters())->thenReturn($this->listOfOneCommandMessage(new SomeCommand(null)));
     $this->testSubject->assertDispatchedEqualTo(array(new SomeCommand("test")));
 }
 /**
  * Asserts that the given commands have been dispatched in exactly the order given. The command objects are
  * compared
  * using the equals method. Only commands as a result of the event in the "when" stage of the fixture are compared.
  *
  * @param array $commands The expected commands
  * @return FixtureExecutionResultInterface the FixtureExecutionResult for method chaining
  */
 public function expectDispatchedCommandsEqualTo(array $commands)
 {
     $this->commandValidator->assertDispatchedEqualTo($commands);
     return $this;
 }