Replace some double quotes to single quotes

This commit is contained in:
frost-nzcr4 2011-06-21 21:19:24 +04:00
parent 12259d12cf
commit 1cb51644e6
3 changed files with 7 additions and 7 deletions

View File

@ -22,14 +22,14 @@ class InfoDoctrineCommandTest extends TestCase
{
public function testAnnotationsBundle()
{
$input = new StringInput("doctrine:mapping:info");
$input = new StringInput('doctrine:mapping:info');
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$output->expects($this->at(0))
->method('writeln')
->with($this->equalTo("Found <info>1</info> entities mapped in entity manager <info>default</info>:"));
->with($this->equalTo('Found <info>1</info> entities mapped in entity manager <info>default</info>:'));
$output->expects($this->at(1))
->method('writeln')
->with($this->equalTo("<info>[OK]</info> Fixtures\Bundles\YamlBundle\Entity\Test"));
->with($this->equalTo('<info>[OK]</info> Fixtures\Bundles\YamlBundle\Entity\Test'));
$testContainer = $this->createYamlBundleTestContainer();
$kernel = $this->getMock('Symfony\Component\HttpKernel\Kernel', array(), array(), '', false);

View File

@ -689,7 +689,7 @@ abstract class AbstractDoctrineExtensionTest extends TestCase
'kernel.debug' => false,
'kernel.bundles' => $map,
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.root_dir' => __DIR__ . "/../../../../../" // src dir
'kernel.root_dir' => __DIR__ . '/../../../../../' // src dir
)));
}
@ -701,7 +701,7 @@ abstract class AbstractDoctrineExtensionTest extends TestCase
*/
protected function assertDICDefinitionClass($definition, $expectedClass)
{
$this->assertEquals($expectedClass, $definition->getClass(), "Expected Class of the DIC Container Service Definition is wrong.");
$this->assertEquals($expectedClass, $definition->getClass(), 'Expected Class of the DIC Container Service Definition is wrong.');
}
protected function assertDICConstructorArguments($definition, $args)

View File

@ -35,7 +35,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
'kernel.debug' => false,
'kernel.bundles' => array('YamlBundle' => 'Fixtures\Bundles\YamlBundle\YamlBundle'),
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.root_dir' => __DIR__ . "/../../../../" // src dir
'kernel.root_dir' => __DIR__ . '/../../../../' // src dir
)));
$container->set('annotation_reader', new AnnotationReader());
$loader = new DoctrineExtension();
@ -59,7 +59,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
'default' => array(
'mappings' => array('YamlBundle' => array(
'type' => 'yml',
'dir' => __DIR__ . "/DependencyInjection/Fixtures/Bundles/YamlBundle/Resources/config/doctrine",
'dir' => __DIR__ . '/DependencyInjection/Fixtures/Bundles/YamlBundle/Resources/config/doctrine',
'prefix' => 'Fixtures\Bundles\YamlBundle\Entity',
)
)