File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 42
42
use Rector \Php71 \Rector \FuncCall \CountOnNullRector ;
43
43
use Rector \Php73 \Rector \FuncCall \JsonThrowOnErrorRector ;
44
44
use Rector \Php73 \Rector \FuncCall \StringifyStrNeedlesRector ;
45
- use Rector \PHPUnit \Rector \MethodCall \AssertFalseStrposToContainsRector ;
46
45
use Rector \PHPUnit \Rector \MethodCall \AssertIssetToSpecificMethodRector ;
47
46
use Rector \PHPUnit \Set \PHPUnitSetList ;
48
47
use Rector \Set \ValueObject \LevelSetList ;
57
56
$ containerConfigurator ->import (SetList::DEAD_CODE );
58
57
$ containerConfigurator ->import (LevelSetList::UP_TO_PHP_73 );
59
58
$ containerConfigurator ->import (PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD );
59
+ $ containerConfigurator ->import (PHPUnitSetList::PHPUNIT_80 );
60
60
61
61
$ parameters = $ containerConfigurator ->parameters ();
62
62
122
122
__DIR__ . '/tests/system/Entity/EntityTest.php ' ,
123
123
__DIR__ . '/tests/system/Session/SessionTest.php ' ,
124
124
],
125
-
126
- // assertContains() to string can't be used in PHPUnit 9.1
127
- AssertFalseStrposToContainsRector::class,
128
125
]);
129
126
130
127
// auto import fully qualified class names
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ public function testJSONWithArray()
327
327
$ response ->setJSON ($ body );
328
328
329
329
$ this ->assertSame ($ expected , $ response ->getJSON ());
330
- $ this ->assertNotFalse ( strpos ( $ response ->getHeaderLine ('content-type ' ), ' application/json ' ));
330
+ $ this ->assertStringContainsString ( ' application/json ' , $ response ->getHeaderLine ('content-type ' ));
331
331
}
332
332
333
333
public function testJSONGetFromNormalBody ()
@@ -364,7 +364,7 @@ public function testXMLWithArray()
364
364
$ response ->setXML ($ body );
365
365
366
366
$ this ->assertSame ($ expected , $ response ->getXML ());
367
- $ this ->assertNotFalse ( strpos ( $ response ->getHeaderLine ('content-type ' ), ' application/xml ' ));
367
+ $ this ->assertStringContainsString ( ' application/xml ' , $ response ->getHeaderLine ('content-type ' ));
368
368
}
369
369
370
370
public function testXMLGetFromNormalBody ()
Original file line number Diff line number Diff line change @@ -316,8 +316,8 @@ public function testRenderLayoutWithInclude()
316
316
317
317
$ content = $ view ->render ('extend_include ' );
318
318
319
- $ this ->assertNotFalse ( strpos ( $ content , '<p>Open</p> ' ) );
320
- $ this ->assertNotFalse ( strpos ( $ content , '<h1>Hello World</h1> ' ) );
319
+ $ this ->assertStringContainsString ( '<p>Open</p> ' , $ content );
320
+ $ this ->assertStringContainsString ( '<h1>Hello World</h1> ' , $ content );
321
321
$ this ->assertSame (2 , substr_count ($ content , 'Hello World ' ));
322
322
}
323
323
You can’t perform that action at this time.
0 commit comments