/**
  * Tests the alias method
  *
  * @return void
  */
 public function testAliasMethod()
 {
     $table = new Table(['alias' => 'Users']);
     $this->assertEquals('User', $table->alias());
     $table = new Table(['table' => 'stuffs']);
     $this->assertEquals('stuff', $table->alias());
     $table = new UsersTable();
     $this->assertEquals('User', $table->alias());
     $table = $this->getMockBuilder('Table')->setMethods(['find'])->setMockClassName('SpecialThingTable')->getMock();
     $this->assertEquals('SpecialThing', $table->alias());
     $table->alias('AnotherOne');
     $this->assertEquals('AnotherOne', $table->alias());
 }