Skip to content

Commit

Permalink
Test case
Browse files Browse the repository at this point in the history
(cherry picked from commit c13b970685b851ca8ca97eaa08574037f0623c82)
  • Loading branch information
sjinks committed Aug 4, 2013
1 parent ba1371e commit 2c43eab
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion unit-tests/AnnotationsAdaptersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public function testMemoryAdapter()
$this->assertTrue(is_object($classAnnotations));
$this->assertEquals(get_class($classAnnotations), 'Phalcon\Annotations\Reflection');
$this->assertEquals(get_class($classAnnotations->getClassAnnotations()), 'Phalcon\Annotations\Collection');

$property = $adapter->getProperty('TestClass', 'testProp1');
$this->assertTrue(is_object($property));
$this->assertEquals(get_class($property), 'Phalcon\Annotations\Collection');
$this->assertEquals($property->count(), 4);
}

public function testFilesAdapter()
Expand Down Expand Up @@ -108,6 +113,11 @@ public function testApcAdapter()
$this->assertTrue(is_object($classAnnotations));
$this->assertEquals(get_class($classAnnotations), 'Phalcon\Annotations\Reflection');
$this->assertEquals(get_class($classAnnotations->getClassAnnotations()), 'Phalcon\Annotations\Collection');

$property = $adapter->getProperty('TestClass', 'testProp1');
$this->assertTrue(is_object($property));
$this->assertEquals(get_class($property), 'Phalcon\Annotations\Collection');
$this->assertEquals($property->count(), 4);
}


Expand Down Expand Up @@ -139,6 +149,11 @@ public function testXcacheAdapter()
$this->assertTrue(is_object($classAnnotations));
$this->assertEquals(get_class($classAnnotations), 'Phalcon\Annotations\Reflection');
$this->assertEquals(get_class($classAnnotations->getClassAnnotations()), 'Phalcon\Annotations\Collection');

$property = $adapter->getProperty('TestClass', 'testProp1');
$this->assertTrue(is_object($property));
$this->assertEquals(get_class($property), 'Phalcon\Annotations\Collection');
$this->assertEquals($property->count(), 4);
}

}
}

0 comments on commit 2c43eab

Please sign in to comment.