Replaced all is_a() calls with instanceof operator

This commit is contained in:
Bryan Crowe 2013-09-24 21:08:06 -04:00
parent b883202890
commit 7d7954ce18
6 changed files with 22 additions and 22 deletions

View file

@ -137,7 +137,7 @@ class SchemaShellTest extends CakeTestCase {
public function testStartup() {
$this->Shell->startup();
$this->assertTrue(isset($this->Shell->Schema));
$this->assertTrue(is_a($this->Shell->Schema, 'CakeSchema'));
$this->assertTrue($this->Shell->Schema instanceof CakeSchema);
$this->assertEquals(Inflector::camelize(Inflector::slug(APP_DIR)), $this->Shell->Schema->name);
$this->assertEquals('schema.php', $this->Shell->Schema->file);