Forgot to include these.

This commit is contained in:
Joshua Sherman 2014-01-12 22:06:34 -05:00
parent 10a05a0a06
commit 7fc38398eb
3 changed files with 40 additions and 0 deletions

View file

@ -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();
}
}
?>

View file

@ -0,0 +1,11 @@
<?php
class SessionTest extends PHPUnit_Framework_TestCase
{
public function testIsCLI()
{
new Session();
}
}
?>

View file

@ -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);
}
}
?>