"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/Fixture/FixturizedTestCase.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

FixturizedTestCase.php  (cakephp-4.0.1):FixturizedTestCase.php  (cakephp-4.0.2)
skipping to change at line 17 skipping to change at line 17
* For full copyright and license information, please see the LICENSE.txt * For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice * Redistributions of files must retain the above copyright notice
* *
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoun dation.org) * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoun dation.org)
* @link https://cakephp.org CakePHP(tm) Project * @link https://cakephp.org CakePHP(tm) Project
* @since 3.0.0 * @since 3.0.0
* @license https://opensource.org/licenses/mit-license.php MIT License * @license https://opensource.org/licenses/mit-license.php MIT License
*/ */
namespace Cake\Test\Fixture; namespace Cake\Test\Fixture;
use Cake\TestSuite\Fixture\FixtureManager;
use Cake\TestSuite\TestCase; use Cake\TestSuite\TestCase;
use Exception; use Exception;
/** /**
* This class helps in testing the life-cycle of fixtures inside a CakeTestCase * This class helps in testing the life-cycle of fixtures inside a CakeTestCase
*/ */
class FixturizedTestCase extends TestCase class FixturizedTestCase extends TestCase
{ {
/** /**
* Fixtures to use in this test * Fixtures to use in this test
skipping to change at line 38 skipping to change at line 39
*/ */
protected $fixtures = ['core.Categories', 'core.Articles']; protected $fixtures = ['core.Categories', 'core.Articles'];
/** /**
* test that the shared fixture is correctly set * test that the shared fixture is correctly set
* *
* @return void * @return void
*/ */
public function testFixturePresent() public function testFixturePresent()
{ {
$this->assertInstanceOf('Cake\TestSuite\Fixture\FixtureManager', $this-> fixtureManager); $this->assertInstanceOf(FixtureManager::class, $this->fixtureManager);
} }
/** /**
* test that it is possible to load fixtures on demand * test that it is possible to load fixtures on demand
* *
* @return void * @return void
*/ */
public function testFixtureLoadOnDemand() public function testFixtureLoadOnDemand()
{ {
$this->loadFixtures('Categories'); $this->loadFixtures('Categories');
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)