Skip to content

Commit

Permalink
Release preparations (#207)
Browse files Browse the repository at this point in the history
* Add test with no confirmation

* Improve writing to file

* Apply fixes from StyleCI

* Fix Windows tests

* Revert check for dir

* Fix Windows tests

* Test failing of writing content to a file

* Add DIRECTORY_SEPARATOR in other places

* Add DIRECTORY_SEPARATOR in other places 2

* Exclude Windows 8.2 and 8.3

* Revert "Add DIRECTORY_SEPARATOR in other places 2"

This reverts commit 3578fe3.

* Revert "Add DIRECTORY_SEPARATOR in other places"

This reverts commit 0991195.

* Different approach for testing destination dir

* Apply fixes from StyleCI

* Different approach for testing destination dir 2

* Update PHPUnit

* Add suggest

* Remove todo [skip ci]

* Fix broken links in README [skip ci]

* Use local path in phpunit config

---------

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
arogachev and StyleCIBot authored Mar 20, 2024
1 parent 4290099 commit 47a1456
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Read more in the [official documentation](https://cycle-orm.dev/docs/readme/2.x)

## Documentation

- Guide: [English](docs/en/guide), [Russian](docs/ru/guide), [Spanish](docs/es/guide)
- Guide: [English](docs/guide/en), [Russian](docs/guide/ru), [Spanish](docs/guide/es)
- [Internals](docs/internals.md)

## License
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"cycle/entity-behavior": "^1.0",
"jetbrains/phpstorm-attributes": "^1.0",
"maglnet/composer-require-checker": "^4.3",
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^10.5",
"rector/rector": "^1.0",
"roave/infection-static-analysis-plugin": "^1.25",
"spatie/phpunit-watcher": "^1.23",
Expand All @@ -57,6 +57,9 @@
"yiisoft/di": "^1.2",
"yiisoft/test-support": "^3.0"
},
"suggest": {
"cycle/entity-behavior": "To use PHP attributes that add behaviors to Cycle ORM entities."
},
"autoload": {
"psr-4": {
"Yiisoft\\Yii\\Cycle\\": "src"
Expand Down
1 change: 0 additions & 1 deletion config/di.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
SpiralFactoryInterface::class => Reference::to(CycleDynamicFactory::class),

// Factory for Cycle ORM
// todo: move to separated class
CycleFactoryInterface::class => new OrmFactory($params['yiisoft/yii-cycle']['collections'] ?? []),

// Schema
Expand Down
26 changes: 13 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
executionOrder="random"
resolveDependencies="true"
>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="Yii Cycle tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory>src</directory>
</include>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="Yii Cycle tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions tests/Command/Schema/SchemaPhpCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ protected function setUp(): void
{
$this->output = new BufferedOutput();

if ($this->getName() === 'testExecuteWithFileWriteError') {
if ($this->name() === 'testExecuteWithFileWriteError') {
uopz_set_return('file_put_contents', static fn (): bool => false, true);
}
}

protected function tearDown(): void
{
if ($this->getName() === 'testExecuteWithFileWriteError') {
if ($this->name() === 'testExecuteWithFileWriteError') {
uopz_unset_return('file_put_contents');
}
}
Expand Down

0 comments on commit 47a1456

Please sign in to comment.