Skip to content

Commit

Permalink
fixed singleton test
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedevin committed Dec 1, 2015
1 parent f05960d commit 8ac2e44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/SingletonTest.php → tests/ASingletonTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

class SingletonTest extends Tipsy_Test {
// this class has to be named A to start in order to create the singleton
class ASingletonTest extends Tipsy_Test {
public function testSelfCreate() {
Tipsy\Tipsy::config(['test' => 'me']);
$this->assertEquals('me', Tipsy\Tipsy::config()['test']);
Expand Down
4 changes: 1 addition & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function ob($start = true) {
} else {
ob_end_clean();
}

return $check;
}
}
Expand All @@ -32,5 +32,3 @@ public function ob($start = true) {
// Autoload files using Composer autoload
require_once __DIR__ . '/../vendor/autoload.php';

// include the base file in case we have crap in there
$t = new \Tipsy\Tipsy;

0 comments on commit 8ac2e44

Please sign in to comment.