for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\NewsBundle\Tests;
/**
* NEXT_MAJOR: Remove this class when dropping support for < PHPUnit 5.4.
* @internal
class PHPUnit_Framework_TestCase extends \PHPUnit_Framework_TestCase
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes DatabaseProvider.
DatabaseProvider
{
* @param string $class
* @return \PHPUnit_Framework_MockObject_MockObject
protected function createMock($class)
if (is_callable('parent::createMock')) {
return parent::createMock($class);
}
return $this->getMock($class);
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.