cakephp2-php8/cake/tests/fixtures/fixturized_test_case.php

54 lines
1.1 KiB
PHP
Raw Normal View History

2010-05-08 20:26:21 +00:00
<?php
2010-05-08 21:06:11 +00:00
PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'DEFAULT');
2010-05-08 20:26:21 +00:00
/**
* This class helps in testing the life-cycle of fixtures inside a CakeTestCase
*
* @package cake
* @subpackage cake.tests.fixtures
*/
class FixturizedTestCase extends CakeTestCase {
2010-05-08 21:06:11 +00:00
/**
* Fixtures to use in this thes
* @var array
*/
2010-05-08 20:26:21 +00:00
public $fixtures = array('core.category');
2010-05-08 21:06:11 +00:00
/**
* test that the shared fixture is correctly set
*
* @return void
*/
2010-05-08 20:26:21 +00:00
public function testFixturePresent() {
$this->assertType('CakeFixtureManager', $this->sharedFixture);
}
2010-05-08 21:06:11 +00:00
/**
* test that it is possible to load fixtures on demand
*
* @return void
*/
public function testFixtureLoadOnDemand() {
$this->loadFixtures('Category');
}
2010-05-08 21:06:11 +00:00
/**
* test that a test is marked as skipped using skipIf and its first parameter evaluates to true
*
* @return void
*/
public function testSkipIfTrue() {
$this->skipIf(true);
}
/**
* test that a test is not marked as skipped using skipIf and its first parameter evaluates to false
*
* @return void
*/
public function testSkipIfFalse() {
$this->skipIf(false);
}
2010-05-08 20:26:21 +00:00
}