| 1 |
# scssphp v0.0.12 |
| 2 |
### <http://leafo.net/scssphp> |
| 3 |
|
| 4 |
[](http://travis-ci.org/leafo/scssphp](http://travis-ci.org/leafo/scssphp](http://travis-ci.org/leafo/scssphp) |
| 5 |
|
| 6 |
`scssphp` is a compiler for SCSS written in PHP. |
| 7 |
|
| 8 |
It implements SCSS 3.2.12. It does not implement the SASS syntax, only the SCSS |
| 9 |
syntax. |
| 10 |
|
| 11 |
Checkout the homepage, <http://leafo.net/scssphp>, for directions on how to use. |
| 12 |
|
| 13 |
## Running Tests |
| 14 |
|
| 15 |
`scssphp` uses [](https://github.com/sebastianbergmann/phpunitPHPUnit](https://github.com/sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) for testing. |
| 16 |
|
| 17 |
Run the following command from the root directory to run every test: |
| 18 |
|
| 19 |
phpunit tests |
| 20 |
|
| 21 |
There are two kinds of tests in the `tests/` directory: |
| 22 |
|
| 23 |
* `ApiTest.php` contains various unit tests that test the PHP interface. |
| 24 |
* `ExceptionTest.php` contains unit tests that test for exceptions thrown by the parser and compiler. |
| 25 |
* `InputTest.php` compiles every `.scss` file in the `tests/inputs` directory |
| 26 |
then compares to the respective `.css` file in the `tests/outputs` directory. |
| 27 |
|
| 28 |
When changing any of the tests in `tests/inputs`, the tests will most likely |
| 29 |
fail because the output has changed. Once you verify that the output is correct |
| 30 |
you can run the following command to rebuild all the tests: |
| 31 |
|
| 32 |
BUILD=true phpunit tests |
| 33 |
|
| 34 |
This will compile all the tests, and save results into `tests/outputs`. |
| 35 |
|