Skip to content

Commit cc7b96e

Browse files
committed
Use ::exists()
1 parent e2e420a commit cc7b96e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/php/com/handlebarsjs/unittest/PartialBlockHelperTest.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php namespace com\handlebarsjs\unittest;
22

3-
use com\github\mustache\templates\NotFound;
43
use test\{Assert, Test};
54

65
class PartialBlockHelperTest extends HelperTest {
@@ -87,7 +86,7 @@ public function inline_template_not_available_after_transformation() {
8786
]));
8887
$engine->transform('fixture', []);
8988

90-
Assert::instance(NotFound::class, $engine->templates()->source('test'));
89+
Assert::false($engine->templates()->source('test')->exists());
9190
}
9291

9392
#[Test]

0 commit comments

Comments
 (0)