Skip to content

Commit 928b747

Browse files
committed
More CS fixes
1 parent aeb1b40 commit 928b747

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

.php_cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
<?php
33

44
$finder = PhpCsFixer\Finder::create()
5-
->files()
6-
->name('*.php')
7-
->name('*.twig')
8-
->in('app/Resources')
9-
->in('src')
10-
->append([
11-
'web/app.php',
12-
'web/app_dev.php',
13-
])
5+
->in(__DIR__)
6+
->exclude('var')
7+
->exclude('vendor')
8+
->notPath('web/config.php')
149
;
1510

1611
return PhpCsFixer\Config::create()

tests/AppBundle/Controller/Admin/BlogControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testRegularUsers($httpMethod, $url, $statusCode)
4242
]);
4343

4444
$client->request($httpMethod, $url);
45-
$this->assertEquals($statusCode, $client->getResponse()->getStatusCode());
45+
$this->assertSame($statusCode, $client->getResponse()->getStatusCode());
4646
}
4747

4848
public function getUrlsForRegularUsers()
@@ -64,7 +64,7 @@ public function testAdminUsers($httpMethod, $url, $statusCode)
6464
]);
6565

6666
$client->request($httpMethod, $url);
67-
$this->assertEquals($statusCode, $client->getResponse()->getStatusCode());
67+
$this->assertSame($statusCode, $client->getResponse()->getStatusCode());
6868
}
6969

7070
public function getUrlsForAdminUsers()

tests/AppBundle/Controller/DefaultControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testSecureUrls($url)
7575

7676
$this->assertTrue($client->getResponse()->isRedirect());
7777

78-
$this->assertEquals(
78+
$this->assertSame(
7979
'http://localhost/en/login',
8080
$client->getResponse()->getTargetUrl(),
8181
sprintf('The %s secure URL redirects to the login form.', $url)

tests/AppBundle/Utils/SluggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testSlugify($string, $slug)
3333
$slugger = new Slugger();
3434
$result = $slugger->slugify($string);
3535

36-
$this->assertEquals($slug, $result);
36+
$this->assertSame($slug, $result);
3737
}
3838

3939
public function getSlugs()

0 commit comments

Comments
 (0)