Created
February 13, 2019 11:42
-
-
Save dataich/c4a00b6ef497071a3eb0096584471a5e to your computer and use it in GitHub Desktop.
This file contains 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 | |
spl_autoload_register(function ($className) { | |
include "$className.php"; | |
}); | |
class EntryTest extends PHPUnit_Framework_TestCase { | |
public function testStatus() { | |
$entry = new Entry(); | |
$this->assertEquals(Entry::STATUS_DRAFT, $entry->status); | |
$entry->publish(); | |
$this->assertEquals(Entry::STATUS_PUBLISHED, $entry->status); | |
$entry->delete(); | |
$this->assertEquals(Entry::STATUS_DELETED, $entry->status); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment