https://github.com/peterfox/rector-status-rule-demo
https://github.com/peterfox/rector-status-rule-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peterfox/rector-status-rule-demo
- Owner: peterfox
- Created: 2022-12-11T19:26:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-18T02:02:30.000Z (over 3 years ago)
- Last Synced: 2025-11-22T02:03:50.300Z (8 months ago)
- Language: PHP
- Size: 136 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Setup with:
```shell
composer install
```
Check tests work:
```shell
php artisan test
```
Run Rector with:
```shell
./vendor/bin/rector
```
This should change the file `tests/Feature/ExampleTest.php` from:
```php
get('/');
$response->assertSeeText('Laravel')->assertStatus(200);
}
}
```
to:
```php
get('/');
$response->assertSeeText('Laravel')->assertOk();
}
}
```
Then run `./vendor/bin/ecs check tests --fix` to format the test.
```php
get('/');
$response->assertSeeText('Laravel')
->assertOk();
}
}
```