Skip to content

Commit

Permalink
Forgot to include these.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtronic committed Jan 13, 2014
1 parent 10a05a0 commit 7fc3839
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/classes/ModelTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

class ModelTest extends PHPUnit_Framework_TestCase
{
/**
* @expectedException Exception
* @expectedExceptionMessage You must set the table variable
*/
public function testNoTable()
{
new Model();
}
}

?>
11 changes: 11 additions & 0 deletions tests/classes/SessionTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

class SessionTest extends PHPUnit_Framework_TestCase
{
public function testIsCLI()
{
new Session();
}
}

?>
14 changes: 14 additions & 0 deletions tests/classes/ValidateTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

class ValidateTest extends PHPUnit_Framework_TestCase
{
public function testIsValidTooLong()
{
$variable = 'really long string';
$rules = 'length:16';

Validate::isValid($variable, $rules);
}
}

?>

0 comments on commit 7fc3839

Please sign in to comment.