TerrePorter / StringBladeCompiler

Render Blade templates from string
MIT License
175 stars 76 forks source link

How do I run the tests? #60

Closed jpscharf closed 1 year ago

jpscharf commented 4 years ago

How do you setup an run the test?

Trying to run tests…

  1. Checkout the repository.
  2. Run composer install
  3. phpunit is not a dependency
  4. composer require -dev phpunit:^8
  5. vendor/bin/phpunit
    • PHP Warning: require(/Users/jscharf/Workspace/test/StringBladeCompiler-fork/tests/../../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/jscharf/Workspace/test/StringBladeCompiler-fork/tests/bootstrap.php on line 15
  6. So I modify tests/bootstrap.php changing require __DIR__.'/../../../vendor/autoload.php'; -> `require DIR.'/../vendor/autoload.php';
  7. vendor/bin/phpunit
    • HP Fatal error: Uncaught Error: Class 'Wpb\String_Blade_Compiler\Tests\Blade\AbstractBladeTestCase' not found in /Users/jscharf/Workspace/test/StringBladeCompiler-fork/tests/View/Blade/BladeAppendTest.php:5
TerrePorter commented 3 years ago

I never got all the tests working actually, not much of a TDD developer, although i should be