Permalink
Browse files

Updated PEAR package.xml and added an AdhocTest case

  • Loading branch information...
1 parent ca29a16 commit 4e1f4200cc59c4e61cc165aaedb249c1d5ce5085 Pádraic Brady committed Jan 24, 2012
Showing with 50 additions and 4 deletions.
  1. +4 −4 package.xml
  2. +46 −0 tests/Mockery/AdhocTest.php
View
@@ -10,11 +10,11 @@
<email>padraic.brady@yahoo.com</email>
<active>yes</active>
</lead>
- <date>2011-04-18</date>
- <time>19:10:59</time>
+ <date>2012-01-24</date>
+ <time>20:00:00</time>
<version>
- <release>0.7.0</release>
- <api>0.7.0</api>
+ <release>0.7.2</release>
+ <api>0.7.2</api>
</version>
<stability>
<release>stable</release>
@@ -0,0 +1,46 @@
+<?php
+/**
+ * Mockery
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://github.com/padraic/mutateme/master/LICENSE
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to padraic@php.net so we can send you a copy immediately.
+ *
+ * @category Mockery
+ * @package Mockery
+ * @subpackage UnitTests
+ * @copyright Copyright (c) 2012 Pádraic Brady (http://blog.astrumfutura.com)
+ * @license http://github.com/padraic/mockery/blob/master/LICENSE New BSD License
+ */
+
+/**
+ * Ad-hoc unit tests for various scenarios reported by users
+ */
+class Mockery_AdhocTest extends PHPUnit_Framework_TestCase
+{
+
+ public function setup ()
+ {
+ $this->container = new \Mockery\Container;
+ }
+
+ public function teardown()
+ {
+ $this->container->mockery_close();
+ }
+
+ public function testSimplestMockCreation()
+ {
+ $m = $this->container->mock('MockeryTest_NameOfExistingClass');
+ $this->assertTrue($m instanceof MockeryTest_NameOfExistingClass);
+ }
+
+}
+
+class MockeryTest_NameOfExistingClass {}

0 comments on commit 4e1f420

Please sign in to comment.