You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
592 B
26 lines
592 B
<?php
|
|
|
|
namespace Coffee;
|
|
|
|
// This is not necessary, since it is bootstrapped but serves for debugging purposes
|
|
require __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
class TileTest extends \PHPUnit_Framework_TestCase {
|
|
|
|
public function testRepresentsElement() {
|
|
$tile = new Tile(2, 2, Tile::REPRESENTS_ELEMENT);
|
|
|
|
$this->assertTrue($tile->representsElement());
|
|
}
|
|
|
|
public function testGetPosition() {
|
|
$row = 2;
|
|
$column = 2;
|
|
|
|
$tile = new Tile($row, $column, Tile::REPRESENTS_VOID);
|
|
$position = new Position($row, $column);
|
|
|
|
$this->assertEquals($position, $tile->getPosition());
|
|
|
|
}
|
|
}
|
|
|