diff --git a/tests/Translator/LocatorTest.php b/tests/Translator/LocatorTest.php index 8f2931170..96b4fb30b 100644 --- a/tests/Translator/LocatorTest.php +++ b/tests/Translator/LocatorTest.php @@ -49,7 +49,12 @@ public function testGetLocales() $config->shouldReceive('localesDirectory')->andReturn(__DIR__ . '/fixtures/locales/'); - $this->assertSame(['en', 'ru'], $source->getLocales()); + $compared = $source->getLocales(); + $shouldBe = ['en', 'ru']; + sort($shouldBe); + sort($compared); + + $this->assertSame($shouldBe, $compared); } public function testLoadLocale() diff --git a/tests/Views/StemplerTest.php b/tests/Views/StemplerTest.php index 4649c03e2..9fac91b77 100644 --- a/tests/Views/StemplerTest.php +++ b/tests/Views/StemplerTest.php @@ -63,7 +63,10 @@ public function testCompileWithEnvironment() public function testRenderFromOtherLoader() { - $this->assertSame('Hello, World!', $this->views->render('native', [ + $this->deleteCacheFiles(); + clearstatcache(); + + $this->assertContains('Hello, World!', $this->views->render('home', [ 'name' => 'World' ])); @@ -74,7 +77,7 @@ public function testRenderFromOtherLoader() ) ); - $this->assertSame('home alt', $views->render('home')); + $this->assertContains('home alt', $views->render('home')); } public function testRenderFromCache()