Skip to content

Commit

Permalink
add functional test + move classes
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Jan 8, 2015
1 parent 34e9907 commit d5aec9b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Liip\ImagineBundle\Tests\Functional\Imagine;
namespace Liip\ImagineBundle\Tests\Functional\Imagine\Data;

use Liip\ImagineBundle\Tests\Functional\WebTestCase;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Liip\ImagineBundle\Tests\Functional\Imagine;
namespace Liip\ImagineBundle\Tests\Functional\Imagine\Filter;

use Liip\ImagineBundle\Tests\Functional\WebTestCase;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
namespace Liip\ImagineBundle\Tests\Functional\Imagine\Filter\Loader;

use Liip\ImagineBundle\Tests\Functional\WebTestCase;

class InterlaceFilterLoaderTest extends WebTestCase
{
public function testCouldBeGetFromContainerAsService()
{
$this->createClient();
$service = self::$kernel->getContainer()->get('liip_imagine.filter.loader.interlace');

$this->assertInstanceOf('Liip\ImagineBundle\Imagine\Filter\Loader\InterlaceFilterLoader', $service);
}
}

2 changes: 1 addition & 1 deletion Tests/Imagine/Filter/Loader/InterlaceFilterLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testLoad()
$image = $this->getMockImage();
$image
->expects($this->once())
->method('interpolate')
->method('interlace')
->with('TEST')
;

Expand Down

0 comments on commit d5aec9b

Please sign in to comment.