Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Apr 16, 2015
1 parent 3e73ca8 commit 508935a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/LazyRecord/Schema/SchemaDeclare/ColumnTest.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<?php

class ColumnTest extends PHPUnit_Framework_TestCase
{
function test()
{
$column = new LazyRecord\Schema\ColumnDeclare('foo');
ok($column);

$column->primary()
->integer()
->autoIncrement()
->notNull();

is('foo',$column->name);
ok($column->primary);
is('integer',$column->type);
$this->assertEquals('foo',$column->name);
$this->assertTrue($column->primary);
$this->assertEquals('int',$column->type);
$this->assertFalse($column->null);
}
}
Expand Down

0 comments on commit 508935a

Please sign in to comment.