Forgot to include these.
This commit is contained in:
parent
10a05a0a06
commit
7fc38398eb
3 changed files with 40 additions and 0 deletions
15
tests/classes/ModelTest.php
Normal file
15
tests/classes/ModelTest.php
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
11
tests/classes/SessionTest.php
Normal file
11
tests/classes/SessionTest.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
class SessionTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testIsCLI()
|
||||
{
|
||||
new Session();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
14
tests/classes/ValidateTest.php
Normal file
14
tests/classes/ValidateTest.php
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue