From 485c15d55defb18396c4ec8e6ee9d4f8bd223bd2 Mon Sep 17 00:00:00 2001 From: AD7six Date: Tue, 18 Oct 2011 17:49:52 +0200 Subject: [PATCH] went missing in the merge from 92d028630c3e7b62724bc7d1b518f9e986da84da --- lib/Cake/Test/Case/Console/Command/TestShellTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Console/Command/TestShellTest.php b/lib/Cake/Test/Case/Console/Command/TestShellTest.php index b99c2c798d2..b787d40532f 100644 --- a/lib/Cake/Test/Case/Console/Command/TestShellTest.php +++ b/lib/Cake/Test/Case/Console/Command/TestShellTest.php @@ -304,9 +304,9 @@ public function testAvailableCoreCategory() { $this->Shell->args = array('core'); $this->Shell->expects($this->at(0))->method('out')->with('Core Test Cases:'); $this->Shell->expects($this->at(1))->method('out') - ->with(new PHPUnit_Framework_Constraint_PCREMatch('/\[1\].*/')); + ->with($this->stringContains('[1]')); $this->Shell->expects($this->at(2))->method('out') - ->with(new PHPUnit_Framework_Constraint_PCREMatch('/\[2\].*/')); + ->with($this->stringContains('[2]')); $this->Shell->expects($this->once())->method('in') ->with(__d('cake_console', 'What test case would you like to run?'), null, 'q')