This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/kohana/system/tests/kohana/ModelTest.php
2011-07-18 16:20:23 +10:00

36 lines
708 B
PHP

<?php defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run');
/**
* This test only really exists for code coverage.
*
* @group kohana
* @group kohana.model
*
* @package Kohana
* @category Tests
* @author Kohana Team
* @author BRMatt <matthew@sigswitch.com>
* @copyright (c) 2008-2011 Kohana Team
* @license http://kohanaframework.org/license
*/
class Kohana_ModelTest extends Unittest_TestCase
{
/**
* Test the model's factory.
*
* @test
* @covers Model::factory
*/
public function test_create()
{
$foobar = Model::factory('Foobar');
$this->assertEquals(TRUE, $foobar instanceof Model);
}
}
class Model_Foobar extends Model
{
}