An open API service indexing awesome lists of open source software.

https://github.com/peterfox/rector-status-rule-demo


https://github.com/peterfox/rector-status-rule-demo

Last synced: 3 months ago
JSON representation

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();
}
}

```