Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[CS] PHPUnit dedicate assert fixer acceptance test #17872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ public function testTransform()
{
$result = $this->transformer->transform(new \PropelObjectCollection());

$this->assertTrue(is_array($result));
$this->assertInternalType('array', $result);
$this->assertCount(0, $result);
}

public function testTransformWithNull()
{
$result = $this->transformer->transform(null);

$this->assertTrue(is_array($result));
$this->assertInternalType('array', $result);
$this->assertCount(0, $result);
}

Expand All @@ -54,7 +54,7 @@ public function testTransformWithData()

$result = $this->transformer->transform($coll);

$this->assertTrue(is_array($result));
$this->assertInternalType('array', $result);
$this->assertCount(2, $result);
$this->assertEquals('foo', $result[0]);
$this->assertEquals('bar', $result[1]);
Expand Down Expand Up @@ -93,7 +93,7 @@ public function testReverseTransformWithData()

$this->assertInstanceOf('\PropelObjectCollection', $result);

$this->assertTrue(is_array($data));
$this->assertInternalType('array', $data);
$this->assertCount(2, $data);
$this->assertEquals('foo', $data[0]);
$this->assertEquals('bar', $data[1]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function testDefinitionExampleGetsTransferredToNode()
$tree = $builder->buildTree();
$children = $tree->getChildren();

$this->assertTrue(is_array($tree->getExample()));
$this->assertInternalType('array', $tree->getExample());
$this->assertEquals('example', $children['child']->getExample());
}
}
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Finder/Tests/Shell/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function testExecute()
$cmd->add('--version');
$result = $cmd->execute();

$this->assertTrue(is_array($result));
$this->assertInternalType('array', $result);
$this->assertNotEmpty($result);
$this->assertRegexp('/PHP|HipHop/', $result[0]);
}
Expand Down
12 changes: 6 additions & 6 deletions 12 src/Symfony/Component/HttpFoundation/Tests/File/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public function testMove()
$movedFile = $file->move($targetDir);
$this->assertInstanceOf('Symfony\Component\HttpFoundation\File\File', $movedFile);

$this->assertTrue(file_exists($targetPath));
$this->assertFalse(file_exists($path));
$this->assertFileExists($targetPath);
$this->assertFileNotExists($path);
$this->assertEquals(realpath($targetPath), $movedFile->getRealPath());

@unlink($targetPath);
Expand All @@ -100,8 +100,8 @@ public function testMoveWithNewName()
$file = new File($path);
$movedFile = $file->move($targetDir, 'test.newname.gif');

$this->assertTrue(file_exists($targetPath));
$this->assertFalse(file_exists($path));
$this->assertFileExists($targetPath);
$this->assertFileNotExists($path);
$this->assertEquals(realpath($targetPath), $movedFile->getRealPath());

@unlink($targetPath);
Expand Down Expand Up @@ -135,8 +135,8 @@ public function testMoveWithNonLatinName($filename, $sanitizedFilename)
$movedFile = $file->move($targetDir, $filename);
$this->assertInstanceOf('Symfony\Component\HttpFoundation\File\File', $movedFile);

$this->assertTrue(file_exists($targetPath));
$this->assertFalse(file_exists($path));
$this->assertFileExists($targetPath);
$this->assertFileNotExists($path);
$this->assertEquals(realpath($targetPath), $movedFile->getRealPath());

@unlink($targetPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public function testMoveLocalFileIsAllowedInTestMode()

$movedFile = $file->move(__DIR__.'/Fixtures/directory');

$this->assertTrue(file_exists($targetPath));
$this->assertFalse(file_exists($path));
$this->assertFileExists($targetPath);
$this->assertFileNotExists($path);
$this->assertEquals(realpath($targetPath), $movedFile->getRealPath());

@unlink($targetPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testWriteCacheFileCreatesTheFile()
$warmer = new TestCacheWarmer(self::$cacheFile);
$warmer->warmUp(dirname(self::$cacheFile));

$this->assertTrue(file_exists(self::$cacheFile));
$this->assertFileExists(self::$cacheFile);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testReadReturnsArray()
{
$data = $this->reader->read(__DIR__.'/Fixtures/json', 'en');

$this->assertTrue(is_array($data));
$this->assertInternalType('array', $data);
$this->assertSame('Bar', $data['Foo']);
$this->assertFalse(isset($data['ExistsNot']));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testReadReturnsArray()
{
$data = $this->reader->read(__DIR__.'/Fixtures/php', 'en');

$this->assertTrue(is_array($data));
$this->assertInternalType('array', $data);
$this->assertSame('Bar', $data['Foo']);
$this->assertFalse(isset($data['ExistsNot']));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ public function testGetSetToken()

public function testTranslationsAreNotInCore()
{
$this->assertFalse(file_exists(__DIR__.'/../../Core/Resources/translations/'));
$this->assertFileNotExists(__DIR__.'/../../Core/Resources/translations/');
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.