mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-14 01:55:46 +00:00
port GildedRose Java version to PHP with PHPUnit test
This commit is contained in:
1 parent
370c77bb6b
commit
09355abb56
4 files changed
+110
No files matched your search
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__.'/../src');
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require_once 'gilded_rose.php';
|
||||
|
||||
class GildedRoseTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testFoo() {
|
||||
$items = array(new Item("foo", 0, 0));
|
||||
$gildedRose = new GildedRose($items);
|
||||
$gildedRose->update_quality();
|
||||
$this->assertEquals("fixme", $items[0]->name);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user