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.
18 lines
406 B
18 lines
406 B
8 years ago
|
<?php
|
||
|
|
||
|
namespace Coffee;
|
||
|
|
||
8 years ago
|
// This is not necessary, since it is bootstrapped but serves for debugging purposes
|
||
8 years ago
|
require __DIR__ . '/../../vendor/autoload.php';
|
||
8 years ago
|
|
||
8 years ago
|
class SpotTest extends \PHPUnit_Framework_TestCase {
|
||
|
|
||
8 years ago
|
public function testGetPositions() {
|
||
|
$position = new Position(2, 1);
|
||
|
$spot = new Spot();
|
||
|
$spot->addPosition($position);
|
||
8 years ago
|
|
||
8 years ago
|
$this->assertEquals([$position], $spot->getPositions());
|
||
8 years ago
|
}
|
||
|
}
|