%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/cocur/slugify/tests/Bridge/Latte/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/cocur/slugify/tests/Bridge/Latte/SlugifyHelperTest.php

<?php

namespace Cocur\Slugify\Tests\Bridge\Latte;

use Cocur\Slugify\Bridge\Latte\SlugifyHelper;
use Mockery as m;

/**
 * SlugifyHelperTest
 *
 * @category   test
 * @package    cocur/slugify
 * @subpackage bridge
 * @author     Lukáš Unger <looky.msc@gmail.com>
 * @license    http://www.opensource.org/licenses/MIT The MIT License
 * @group      unit
 */
class SlugifyHelperTest extends \PHPUnit_Framework_TestCase
{
    protected function setUp()
    {
        $this->slugify = m::mock('Cocur\Slugify\SlugifyInterface');
        $this->helper = new SlugifyHelper($this->slugify);
    }

    /**
     * @test
     * @covers Cocur\Slugify\Bridge\Latte\SlugifyHelper::slugify()
     */
    public function slugify()
    {
        $this->slugify->shouldReceive('slugify')->with('hällo wörld', '_')->once()->andReturn('haello_woerld');

        $this->assertEquals('haello_woerld', $this->helper->slugify('hällo wörld', '_'));
    }
}

Zerion Mini Shell 1.0