Skip to content

Commit

Permalink
Add ConsoleTest
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Sep 13, 2012
1 parent c97bac6 commit 657c878
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 91 deletions.
78 changes: 0 additions & 78 deletions src/LazyRecord/CodeGen.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/LazyRecord/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public function brief()
return 'LazyRecord ORM';
}



public function init()
{
parent::init();
Expand Down
11 changes: 0 additions & 11 deletions tests/LazyRecord/CodeGenTest.php

This file was deleted.

13 changes: 13 additions & 0 deletions tests/LazyRecord/ConsoleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

class ConsoleTest extends PHPUnit_Framework_TestCase
{
function test()
{
$this->expectOutputRegex('/LazyRecord/');
$console = new LazyRecord\Console;
ok($console);
$console->run(array());
}
}

0 comments on commit 657c878

Please sign in to comment.