This file contains hidden or 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
public function testMockedMethodsCallableFromWithinOriginalClass() | |
{ | |
$mock = $this->container->mock('MockeryTest_InterMethod1[doThird]'); | |
$mock->shouldReceive('doThird')->andReturn(true); | |
$this->assertTrue($mock->doFirst()); | |
} |
This file contains hidden or 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 | |
class MockeryTest_InterMethod1 | |
{ | |
public function doFirst() { | |
return $this->doSecond(); | |
} | |
private function doSecond() { | |
return $this->doThird(); |
This file contains hidden or 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 | |
/** | |
* Purpose of the exercise is to analyse test case files. Any classes defined | |
* therein in addition to the actual test case class is assumed to be a | |
* hard coded Test Double. Now, where's my pinch of salt... | |
* | |
* Script's sole argument is the path (to a test directory) to analyse. | |
*/ |
This file contains hidden or 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
PASS #1 - SMALL FILE | |
============================================= | |
HTMLPurifier Pass #1 - Small File: | |
---------------------------------------------------- | |
marker time index ex time perct | |
---------------------------------------------------- | |
Start 1278617711.57713300 - 0.00% | |
---------------------------------------------------- | |
Stop 1278617715.11053700 3.533404 100.00% |
This file contains hidden or 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
remote: Counting objects: 1032, done. | |
remote: Compressing objects: 100% (320/320), done. | |
remote: Total 836 (delta 508), reused 691 (delta 416) | |
Receiving objects: 100% (836/836), 322.07 KiB | 56 KiB/s, done. | |
Resolving deltas: 100% (508/508), completed with 120 local objects. | |
From git://git.zendframework.com/zf | |
* branch master -> FETCH_HEAD | |
CONFLICT (rename/add): Rename library/Zend/Feed/PubSubHubbub/Model/ModelAbstract.php->library/Zend/Markup/Renderer/Markup/Replace.php in ccb08e825849762b96d0c6db327d2fc159384d68. library/Zend/Markup/Renderer/Markup/Replace.php added in HEAD | |
Adding as library/Zend/Markup/Renderer/Markup/Replace.php~HEAD instead | |
CONFLICT (rename/rename): Rename "library/Zend/Markup/Renderer/HTML/Code.php"->"library/Zend/Markup/Renderer/Markup/Replace.php" in branch "HEAD" rename "library/Zend/Markup/Renderer/HTML/Code.php"->"library/Zend/Markup/Renderer/Markup/HTML/Code.php" in "ccb08e825849762b96d0c6db327d2fc159384d68" |
This file contains hidden or 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 | |
$preloads = array( | |
// from get_declared_classes() | |
'Zend_Controller_Front', | |
'Zend_Controller_Plugin_Abstract', | |
'Zend_Controller_Plugin_Broker', | |
'Zend_Controller_Router_Abstract', | |
'Zend_Controller_Router_Rewrite', | |
'Zend_Controller_Router_Route_Abstract', | |
'Zend_Controller_Router_Route', |
This file contains hidden or 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 | |
require_once 'Zend/Http/Client.php'; | |
$bclient = new Zend_Http_Client(array('keepalive'=>true)); | |
$bclient->setUri('http://bit.ly'); | |
echo $bclient->request()->getBody(); |
This file contains hidden or 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 | |
ini_set('display_errors', 1); | |
require_once 'Zend/Markup.php'; | |
$source = <<<string | |
[ adfdsfda [url]http://example.com[url] | |
string; | |
$bbcode = Zend_Markup::factory('Bbcode'); | |
echo $bbcode->render($source); |
This file contains hidden or 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 | |
ini_set('display_errors', 1); | |
require_once 'Zend/Markup.php'; | |
$source = <<<string | |
[[url]http://example.com[url] | |
string; | |
$bbcode = Zend_Markup::factory('Bbcode'); | |
echo $bbcode->render($source); // [[url]http://example.com |
This file contains hidden or 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
Fatal error: Call to a member function getName() on a non-object in /home/padraic/projects/zf/trunk/library/Zend/Markup/Parser/Bbcode.php on line 446 | |
Call Stack: | |
0.0004 619656 1. {main}() /var/www/test.php:0 | |
0.0095 1474976 2. Zend_Markup_Renderer_RendererAbstract->render() /var/www/test.php:17 | |
0.0095 1474976 3. Zend_Markup_Parser_Bbcode->parse() /home/padraic/projects/zf/trunk/library/Zend/Markup/Renderer/RendererAbstract.php:186 | |
0.0096 1479416 4. Zend_Markup_Parser_Bbcode->_parse() /home/padraic/projects/zf/trunk/library/Zend/Markup/Parser/Bbcode.php:184 | |
0.0101 1497968 5. Zend_Markup_Parser_Bbcode->_parseTagStart() /home/padraic/projects/zf/trunk/library/Zend/Markup/Parser/Bbcode.php:198 | |
0.0101 1497968 6. Zend_Markup_Parser_Bbcode->_parseTag() /home/padraic/projects/zf/trunk/library/Zend/Markup/Parser/Bbcode.php:238 | |
0.0101 1498416 7. Zend_Markup_Parser_Bbcode->_endTag() /home/padraic/projects/zf/trunk/library/Zend/Markup/Parser/Bbcode.php:266 |