Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/lib/Cake/Test/Fixture/ |
Upload File : |
<?php /** * This class helps in testing the life-cycle of fixtures inside a CakeTestCase * * @package Cake.Test.Fixture */ class FixturizedTestCase extends CakeTestCase { /** * Fixtures to use in this thes * @var array */ public $fixtures = array('core.category'); /** * test that the shared fixture is correctly set * * @return void */ public function testFixturePresent() { $this->assertInstanceOf('CakeFixtureManager', $this->fixtureManager); } /** * test that it is possible to load fixtures on demand * * @return void */ public function testFixtureLoadOnDemand() { $this->loadFixtures('Category'); } /** * 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); } /** * test that a fixtures are unoaded even if the test throws exceptions * * @return void * @throws Exception */ public function testThrowException() { throw new Exception(); } }