public function testSameValueAs()
 {
     $command = new Type(Type::COMMAND);
     $otherCommand = new Type(Type::COMMAND);
     $query = new Type(Type::QUERY);
     $this->assertTrue($command->sameValueAs($otherCommand));
     $this->assertFalse($command->sameValueAs($query));
 }
 /**
  * @return bool
  */
 public function isCommand()
 {
     return $this->type->sameValueAs(new Type(Type::COMMAND));
 }