Subversion Repositories php-qbpwcf

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?php
2
 
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <fabien@symfony.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
 
12
namespace Symfony\Component\Routing\Tests\Loader;
13
 
14
abstract class AbstractAnnotationLoaderTest extends \PHPUnit_Framework_TestCase
15
{
16
    public function getReader()
17
    {
18
        return $this->getMockBuilder('Doctrine\Common\Annotations\Reader')
19
            ->disableOriginalConstructor()
20
            ->getMock()
21
        ;
22
    }
23
 
24
    public function getClassLoader($reader)
25
    {
26
        return $this->getMockBuilder('Symfony\Component\Routing\Loader\AnnotationClassLoader')
27
            ->setConstructorArgs(array($reader))
28
            ->getMockForAbstractClass()
29
        ;
30
    }
31
}