Skip to content

Commit fd4cc3c

Browse files
committed
Test constructor
1 parent c2d268b commit fd4cc3c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Pug/AssetsTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,13 @@ public function testEnvironnement()
134134
self::assertSame('development', $assets->getEnvironment());
135135
self::assertSame($assets, $self);
136136
}
137+
138+
/**
139+
* @expectedException \InvalidArgumentException
140+
* @expectedExceptionMessage Allowed pug engine are Jade\Jade, Pug\Pug or Phug\Renderer, stdClass given.
141+
*/
142+
public function testBadEngine()
143+
{
144+
new Assets(new \stdClass());
145+
}
137146
}

0 commit comments

Comments
 (0)