* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ namespace Chill\MainBundle\Tests\Search; /** * Description of AbstractSearch * * @author Julien Fastré */ class AbstractSearchTest extends \PHPUnit_Framework_TestCase { /** * @var Ab * @var type * @var typestractS */ private $stub; public function setUp() { $this->stub = $this->getMockForAbstractClass('Chill\MainBundle\Search\AbstractSearch', array(), '', true, true, true, array('parseDate')); } public function testParseDateRegular() { $this->markTestSkipped('We have to learn how to mock concret methods for abstract class'); $date = $this->stub->parseDate('2014-05-01'); $this->assertEquals('2014', $date->format('Y')); $this->assertEquals('05', $date->format('m')); $this->assertEquals('01', $date->format('d')); } }