芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/storage/vendor/leafo/scssphp/tests/ExceptionTest.php
scss = new scssc(); } /** * @param string $scss * @param string $expectedExceptionMessage * * @dataProvider provideScss */ public function testThrowError($scss, $expectedExceptionMessage) { try { $this->compile($scss); } catch (Exception $e) { if (strpos($e->getMessage(), $expectedExceptionMessage) !== false) { return; }; } $this->fail('Expected exception to be raised: ' . $expectedExceptionMessage); } /** * @return array */ public function provideScss() { return array( array(<<
scss->compile($str)); } }