Last active
February 2, 2016 09:32
-
-
Save kimikimi714/c5d5e0594392dda1c9c8 to your computer and use it in GitHub Desktop.
knowledge of phpunit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ArrayTest extends PHPUnit_Framework_TestCase { | |
/** | |
* @test | |
*/ | |
public function array_test() { | |
$actual = ['b', 'a']; | |
$expect = ['a', 'b']; | |
$this->assertSame($expect, $actual); | |
/* | |
Failed asserting that Array &0 ( | |
0 => 'b' | |
1 => 'a' | |
) is identical to Array &0 ( | |
0 => 'a' | |
1 => 'b' | |
). | |
*/ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment