Skip to content

Instantly share code, notes, and snippets.

@kimikimi714
Last active February 2, 2016 09:32
Show Gist options
  • Save kimikimi714/c5d5e0594392dda1c9c8 to your computer and use it in GitHub Desktop.
Save kimikimi714/c5d5e0594392dda1c9c8 to your computer and use it in GitHub Desktop.
knowledge of phpunit
<?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